(0) Obligation:

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

active(fst(0, Z)) → mark(nil)
active(fst(s(X), cons(Y, Z))) → mark(cons(Y, fst(X, Z)))
active(from(X)) → mark(cons(X, from(s(X))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(len(nil)) → mark(0)
active(len(cons(X, Z))) → mark(s(len(Z)))
active(cons(X1, X2)) → cons(active(X1), X2)
active(fst(X1, X2)) → fst(active(X1), X2)
active(fst(X1, X2)) → fst(X1, active(X2))
active(from(X)) → from(active(X))
active(add(X1, X2)) → add(active(X1), X2)
active(add(X1, X2)) → add(X1, active(X2))
active(len(X)) → len(active(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
fst(mark(X1), X2) → mark(fst(X1, X2))
fst(X1, mark(X2)) → mark(fst(X1, X2))
from(mark(X)) → mark(from(X))
add(mark(X1), X2) → mark(add(X1, X2))
add(X1, mark(X2)) → mark(add(X1, X2))
len(mark(X)) → mark(len(X))
proper(0) → ok(0)
proper(s(X)) → s(proper(X))
proper(nil) → ok(nil)
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(fst(X1, X2)) → fst(proper(X1), proper(X2))
proper(from(X)) → from(proper(X))
proper(add(X1, X2)) → add(proper(X1), proper(X2))
proper(len(X)) → len(proper(X))
s(ok(X)) → ok(s(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
fst(ok(X1), ok(X2)) → ok(fst(X1, X2))
from(ok(X)) → ok(from(X))
add(ok(X1), ok(X2)) → ok(add(X1, X2))
len(ok(X)) → ok(len(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(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
s(ok(z0)) → ok(s(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(fst(0, z0)) → c
ACTIVE(fst(s(z0), cons(z1, z2))) → c1(CONS(z1, fst(z0, z2)), FST(z0, z2))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(add(0, z0)) → c3
ACTIVE(add(s(z0), z1)) → c4(S(add(z0, z1)), ADD(z0, z1))
ACTIVE(len(nil)) → c5
ACTIVE(len(cons(z0, z1))) → c6(S(len(z1)), LEN(z1))
ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(0) → c26
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(nil) → c28
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
S tuples:

ACTIVE(fst(0, z0)) → c
ACTIVE(fst(s(z0), cons(z1, z2))) → c1(CONS(z1, fst(z0, z2)), FST(z0, z2))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(add(0, z0)) → c3
ACTIVE(add(s(z0), z1)) → c4(S(add(z0, z1)), ADD(z0, z1))
ACTIVE(len(nil)) → c5
ACTIVE(len(cons(z0, z1))) → c6(S(len(z1)), LEN(z1))
ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(0) → c26
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(nil) → c28
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
K tuples:none
Defined Rule Symbols:

active, cons, fst, from, add, len, proper, s, top

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, 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, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36

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

Removed 5 trailing nodes:

ACTIVE(fst(0, z0)) → c
PROPER(nil) → c28
ACTIVE(len(nil)) → c5
PROPER(0) → c26
ACTIVE(add(0, z0)) → c3

(4) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
s(ok(z0)) → ok(s(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(fst(s(z0), cons(z1, z2))) → c1(CONS(z1, fst(z0, z2)), FST(z0, z2))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(add(s(z0), z1)) → c4(S(add(z0, z1)), ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c6(S(len(z1)), LEN(z1))
ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
S tuples:

ACTIVE(fst(s(z0), cons(z1, z2))) → c1(CONS(z1, fst(z0, z2)), FST(z0, z2))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(add(s(z0), z1)) → c4(S(add(z0, z1)), ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c6(S(len(z1)), LEN(z1))
ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
K tuples:none
Defined Rule Symbols:

active, cons, fst, from, add, len, proper, s, top

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c1, c2, c4, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36

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

Removed 1 trailing tuple parts

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
s(ok(z0)) → ok(s(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(fst(s(z0), cons(z1, z2))) → c1(CONS(z1, fst(z0, z2)), FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c4(S(add(z0, z1)), ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c6(S(len(z1)), LEN(z1))
ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), S(z0))
S tuples:

ACTIVE(fst(s(z0), cons(z1, z2))) → c1(CONS(z1, fst(z0, z2)), FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c4(S(add(z0, z1)), ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c6(S(len(z1)), LEN(z1))
ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), S(z0))
K tuples:none
Defined Rule Symbols:

active, cons, fst, from, add, len, proper, s, top

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c1, c4, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c2

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

Split RHS of tuples not part of any SCC

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
s(ok(z0)) → ok(s(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
S tuples:

ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
K tuples:none
Defined Rule Symbols:

active, cons, fst, from, add, len, proper, s, top

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c

(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(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
S tuples:

ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
K tuples:none
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c

(11) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
We considered the (Usable) Rules:

active(cons(z0, z1)) → cons(active(z0), z1)
active(len(nil)) → mark(0)
add(mark(z0), z1) → mark(add(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
active(fst(0, z0)) → mark(nil)
active(from(z0)) → from(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
len(ok(z0)) → ok(len(z0))
active(add(z0, z1)) → add(active(z0), z1)
add(z0, mark(z1)) → mark(add(z0, z1))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(len(z0)) → len(proper(z0))
len(mark(z0)) → mark(len(z0))
s(ok(z0)) → ok(s(z0))
active(fst(z0, z1)) → fst(z0, active(z1))
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(add(0, z0)) → mark(z0)
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
from(mark(z0)) → mark(from(z0))
active(fst(z0, z1)) → fst(active(z0), z1)
active(from(z0)) → mark(cons(z0, from(s(z0))))
proper(s(z0)) → s(proper(z0))
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
from(ok(z0)) → ok(from(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
And the Tuples:

ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = 0   
POL(ACTIVE(x1)) = 0   
POL(ADD(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(FST(x1, x2)) = 0   
POL(LEN(x1)) = 0   
POL(PROPER(x1)) = 0   
POL(S(x1)) = 0   
POL(TOP(x1)) = x1   
POL(active(x1)) = x1   
POL(add(x1, x2)) = [1] + [2]x1 + x2   
POL(c(x1)) = x1   
POL(c10(x1, x2)) = x1 + x2   
POL(c11(x1, x2)) = x1 + x2   
POL(c12(x1, x2)) = x1 + x2   
POL(c13(x1, x2)) = x1 + x2   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c27(x1, x2)) = x1 + x2   
POL(c29(x1, x2, x3)) = x1 + x2 + x3   
POL(c30(x1, x2, x3)) = x1 + x2 + x3   
POL(c31(x1, x2)) = x1 + x2   
POL(c32(x1, x2, x3)) = x1 + x2 + x3   
POL(c33(x1, x2)) = x1 + x2   
POL(c34(x1)) = x1   
POL(c35(x1, x2)) = x1 + x2   
POL(c36(x1, x2)) = x1 + x2   
POL(c7(x1, x2)) = x1 + x2   
POL(c8(x1, x2)) = x1 + x2   
POL(c9(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1   
POL(from(x1)) = [4] + [4]x1   
POL(fst(x1, x2)) = [1] + [2]x1 + [2]x2   
POL(len(x1)) = [4] + [4]x1   
POL(mark(x1)) = [1] + x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   

(12) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
S tuples:

ACTIVE(cons(z0, z1)) → c7(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c

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

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

ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1), ACTIVE(len(nil)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))

(14) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1), ACTIVE(len(nil)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c10(FROM(active(z0)), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1), ACTIVE(len(nil)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c, c7

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

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

ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)), ACTIVE(len(nil)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))

(16) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1), ACTIVE(len(nil)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)), ACTIVE(len(nil)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1), ACTIVE(len(nil)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)), ACTIVE(len(nil)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c, c7, c10

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

Use narrowing to replace ACTIVE(len(z0)) → c13(LEN(active(z0)), ACTIVE(z0)) by

ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)), ACTIVE(len(nil)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))

(18) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1), ACTIVE(len(nil)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)), ACTIVE(len(nil)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)), ACTIVE(len(nil)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1), ACTIVE(len(nil)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)), ACTIVE(len(nil)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)), ACTIVE(len(nil)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c, c7, c10, c13

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

Removed 3 trailing tuple parts

(20) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(s(z0)) → c27(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c27, c29, c30, c31, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13

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

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

PROPER(s(0)) → c27(S(ok(0)), PROPER(0))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(nil)) → c27(S(ok(nil)), PROPER(nil))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))

(22) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(0)) → c27(S(ok(0)), PROPER(0))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(nil)) → c27(S(ok(nil)), PROPER(nil))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(0)) → c27(S(ok(0)), PROPER(0))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(nil)) → c27(S(ok(nil)), PROPER(nil))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27

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

Removed 2 trailing tuple parts

(24) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(cons(z0, z1)) → c29(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c29, c30, c31, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27

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

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

PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))

(26) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c30, c31, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29

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

Removed 4 trailing tuple parts

(28) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c30, c31, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29

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

Use narrowing to replace PROPER(fst(z0, z1)) → c30(FST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1)) by

PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))

(30) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c31, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30

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

Removed 4 trailing tuple parts

(32) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(from(z0)) → c31(FROM(proper(z0)), PROPER(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c31, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30

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

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

PROPER(from(0)) → c31(FROM(ok(0)), PROPER(0))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(nil)) → c31(FROM(ok(nil)), PROPER(nil))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))

(34) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(0)) → c31(FROM(ok(0)), PROPER(0))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(nil)) → c31(FROM(ok(nil)), PROPER(nil))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(0)) → c31(FROM(ok(0)), PROPER(0))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(nil)) → c31(FROM(ok(nil)), PROPER(nil))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31

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

Removed 2 trailing tuple parts

(36) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c32, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31

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

Use narrowing to replace PROPER(add(z0, z1)) → c32(ADD(proper(z0), proper(z1)), PROPER(z0), PROPER(z1)) by

PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))

(38) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32

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

Removed 4 trailing tuple parts

(40) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, PROPER, S, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c33, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32, c32

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

Use narrowing to replace PROPER(len(z0)) → c33(LEN(proper(z0)), PROPER(z0)) by

PROPER(len(0)) → c33(LEN(ok(0)), PROPER(0))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(nil)) → c33(LEN(ok(nil)), PROPER(nil))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))

(42) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(0)) → c33(LEN(ok(0)), PROPER(0))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(nil)) → c33(LEN(ok(nil)), PROPER(nil))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(0)) → c33(LEN(ok(0)), PROPER(0))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(nil)) → c33(LEN(ok(nil)), PROPER(nil))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, S, TOP, PROPER

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32, c32, c33

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

Removed 2 trailing tuple parts

(44) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, S, TOP, PROPER

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34, c35, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32, c32, c33, c33

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

Use narrowing to replace TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0)) by

TOP(mark(0)) → c35(TOP(ok(0)), PROPER(0))
TOP(mark(s(z0))) → c35(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(nil)) → c35(TOP(ok(nil)), PROPER(nil))
TOP(mark(cons(z0, z1))) → c35(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(fst(z0, z1))) → c35(TOP(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
TOP(mark(from(z0))) → c35(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(add(z0, z1))) → c35(TOP(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
TOP(mark(len(z0))) → c35(TOP(len(proper(z0))), PROPER(len(z0)))

(46) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
TOP(mark(0)) → c35(TOP(ok(0)), PROPER(0))
TOP(mark(s(z0))) → c35(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(nil)) → c35(TOP(ok(nil)), PROPER(nil))
TOP(mark(cons(z0, z1))) → c35(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(fst(z0, z1))) → c35(TOP(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
TOP(mark(from(z0))) → c35(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(add(z0, z1))) → c35(TOP(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
TOP(mark(len(z0))) → c35(TOP(len(proper(z0))), PROPER(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, S, TOP, PROPER

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32, c32, c33, c33, c35

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

Removed 2 trailing tuple parts

(48) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
TOP(mark(s(z0))) → c35(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(cons(z0, z1))) → c35(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(fst(z0, z1))) → c35(TOP(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
TOP(mark(from(z0))) → c35(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(add(z0, z1))) → c35(TOP(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
TOP(mark(len(z0))) → c35(TOP(len(proper(z0))), PROPER(len(z0)))
TOP(mark(0)) → c35(TOP(ok(0)))
TOP(mark(nil)) → c35(TOP(ok(nil)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, S, TOP, PROPER

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34, c36, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32, c32, c33, c33, c35, c35

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

Use narrowing to replace TOP(ok(z0)) → c36(TOP(active(z0)), ACTIVE(z0)) by

TOP(ok(fst(0, z0))) → c36(TOP(mark(nil)), ACTIVE(fst(0, z0)))
TOP(ok(fst(s(z0), cons(z1, z2)))) → c36(TOP(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c36(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(add(0, z0))) → c36(TOP(mark(z0)), ACTIVE(add(0, z0)))
TOP(ok(add(s(z0), z1))) → c36(TOP(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
TOP(ok(len(nil))) → c36(TOP(mark(0)), ACTIVE(len(nil)))
TOP(ok(len(cons(z0, z1)))) → c36(TOP(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
TOP(ok(cons(z0, z1))) → c36(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
TOP(ok(from(z0))) → c36(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(add(z0, z1))) → c36(TOP(add(active(z0), z1)), ACTIVE(add(z0, z1)))
TOP(ok(add(z0, z1))) → c36(TOP(add(z0, active(z1))), ACTIVE(add(z0, z1)))
TOP(ok(len(z0))) → c36(TOP(len(active(z0))), ACTIVE(len(z0)))

(50) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
TOP(mark(s(z0))) → c35(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(cons(z0, z1))) → c35(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(fst(z0, z1))) → c35(TOP(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
TOP(mark(from(z0))) → c35(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(add(z0, z1))) → c35(TOP(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
TOP(mark(len(z0))) → c35(TOP(len(proper(z0))), PROPER(len(z0)))
TOP(mark(0)) → c35(TOP(ok(0)))
TOP(mark(nil)) → c35(TOP(ok(nil)))
TOP(ok(fst(0, z0))) → c36(TOP(mark(nil)), ACTIVE(fst(0, z0)))
TOP(ok(fst(s(z0), cons(z1, z2)))) → c36(TOP(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c36(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(add(0, z0))) → c36(TOP(mark(z0)), ACTIVE(add(0, z0)))
TOP(ok(add(s(z0), z1))) → c36(TOP(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
TOP(ok(len(nil))) → c36(TOP(mark(0)), ACTIVE(len(nil)))
TOP(ok(len(cons(z0, z1)))) → c36(TOP(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
TOP(ok(cons(z0, z1))) → c36(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
TOP(ok(from(z0))) → c36(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(add(z0, z1))) → c36(TOP(add(active(z0), z1)), ACTIVE(add(z0, z1)))
TOP(ok(add(z0, z1))) → c36(TOP(add(z0, active(z1))), ACTIVE(add(z0, z1)))
TOP(ok(len(z0))) → c36(TOP(len(active(z0))), ACTIVE(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
TOP(ok(fst(0, z0))) → c36(TOP(mark(nil)), ACTIVE(fst(0, z0)))
TOP(ok(fst(s(z0), cons(z1, z2)))) → c36(TOP(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c36(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(add(0, z0))) → c36(TOP(mark(z0)), ACTIVE(add(0, z0)))
TOP(ok(add(s(z0), z1))) → c36(TOP(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
TOP(ok(len(nil))) → c36(TOP(mark(0)), ACTIVE(len(nil)))
TOP(ok(len(cons(z0, z1)))) → c36(TOP(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
TOP(ok(cons(z0, z1))) → c36(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
TOP(ok(from(z0))) → c36(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(add(z0, z1))) → c36(TOP(add(active(z0), z1)), ACTIVE(add(z0, z1)))
TOP(ok(add(z0, z1))) → c36(TOP(add(z0, active(z1))), ACTIVE(add(z0, z1)))
TOP(ok(len(z0))) → c36(TOP(len(active(z0))), ACTIVE(len(z0)))
K tuples:

TOP(mark(z0)) → c35(TOP(proper(z0)), PROPER(z0))
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, S, PROPER, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32, c32, c33, c33, c35, c35, c36

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

Removed 2 trailing nodes:

TOP(mark(nil)) → c35(TOP(ok(nil)))
TOP(mark(0)) → c35(TOP(ok(0)))

(52) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
TOP(mark(s(z0))) → c35(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(cons(z0, z1))) → c35(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(fst(z0, z1))) → c35(TOP(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
TOP(mark(from(z0))) → c35(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(add(z0, z1))) → c35(TOP(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
TOP(mark(len(z0))) → c35(TOP(len(proper(z0))), PROPER(len(z0)))
TOP(ok(fst(0, z0))) → c36(TOP(mark(nil)), ACTIVE(fst(0, z0)))
TOP(ok(fst(s(z0), cons(z1, z2)))) → c36(TOP(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c36(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(add(0, z0))) → c36(TOP(mark(z0)), ACTIVE(add(0, z0)))
TOP(ok(add(s(z0), z1))) → c36(TOP(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
TOP(ok(len(nil))) → c36(TOP(mark(0)), ACTIVE(len(nil)))
TOP(ok(len(cons(z0, z1)))) → c36(TOP(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
TOP(ok(cons(z0, z1))) → c36(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
TOP(ok(from(z0))) → c36(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(add(z0, z1))) → c36(TOP(add(active(z0), z1)), ACTIVE(add(z0, z1)))
TOP(ok(add(z0, z1))) → c36(TOP(add(z0, active(z1))), ACTIVE(add(z0, z1)))
TOP(ok(len(z0))) → c36(TOP(len(active(z0))), ACTIVE(len(z0)))
S tuples:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
TOP(ok(fst(0, z0))) → c36(TOP(mark(nil)), ACTIVE(fst(0, z0)))
TOP(ok(fst(s(z0), cons(z1, z2)))) → c36(TOP(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c36(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(add(0, z0))) → c36(TOP(mark(z0)), ACTIVE(add(0, z0)))
TOP(ok(add(s(z0), z1))) → c36(TOP(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
TOP(ok(len(nil))) → c36(TOP(mark(0)), ACTIVE(len(nil)))
TOP(ok(len(cons(z0, z1)))) → c36(TOP(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
TOP(ok(cons(z0, z1))) → c36(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
TOP(ok(from(z0))) → c36(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(add(z0, z1))) → c36(TOP(add(active(z0), z1)), ACTIVE(add(z0, z1)))
TOP(ok(add(z0, z1))) → c36(TOP(add(z0, active(z1))), ACTIVE(add(z0, z1)))
TOP(ok(len(z0))) → c36(TOP(len(active(z0))), ACTIVE(len(z0)))
K tuples:none
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

ACTIVE, CONS, FST, FROM, ADD, LEN, S, PROPER, TOP

Compound Symbols:

c8, c9, c11, c12, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34, c, c7, c10, c13, c7, c10, c13, c27, c27, c29, c29, c30, c30, c31, c31, c32, c32, c33, c33, c35, c36

(53) CdtUnreachableProof (EQUIVALENT transformation)

The following tuples could be removed as they are not reachable from basic start terms:

ACTIVE(fst(z0, z1)) → c8(FST(active(z0), z1), ACTIVE(z0))
ACTIVE(fst(z0, z1)) → c9(FST(z0, active(z1)), ACTIVE(z1))
ACTIVE(add(z0, z1)) → c11(ADD(active(z0), z1), ACTIVE(z0))
ACTIVE(add(z0, z1)) → c12(ADD(z0, active(z1)), ACTIVE(z1))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(CONS(z1, fst(z0, z2)))
ACTIVE(fst(s(z0), cons(z1, z2))) → c(FST(z0, z2))
ACTIVE(add(s(z0), z1)) → c(S(add(z0, z1)))
ACTIVE(add(s(z0), z1)) → c(ADD(z0, z1))
ACTIVE(len(cons(z0, z1))) → c(S(len(z1)))
ACTIVE(len(cons(z0, z1))) → c(LEN(z1))
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(cons(fst(0, z0), x1)) → c7(CONS(mark(nil), x1), ACTIVE(fst(0, z0)))
ACTIVE(cons(fst(s(z0), cons(z1, z2)), x1)) → c7(CONS(mark(cons(z1, fst(z0, z2))), x1), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c7(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(0, z0), x1)) → c7(CONS(mark(z0), x1), ACTIVE(add(0, z0)))
ACTIVE(cons(add(s(z0), z1), x1)) → c7(CONS(mark(s(add(z0, z1))), x1), ACTIVE(add(s(z0), z1)))
ACTIVE(cons(len(cons(z0, z1)), x1)) → c7(CONS(mark(s(len(z1))), x1), ACTIVE(len(cons(z0, z1))))
ACTIVE(cons(cons(z0, z1), x1)) → c7(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(active(z0), z1), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(fst(z0, z1), x1)) → c7(CONS(fst(z0, active(z1)), x1), ACTIVE(fst(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c7(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(active(z0), z1), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(add(z0, z1), x1)) → c7(CONS(add(z0, active(z1)), x1), ACTIVE(add(z0, z1)))
ACTIVE(cons(len(z0), x1)) → c7(CONS(len(active(z0)), x1), ACTIVE(len(z0)))
ACTIVE(from(fst(0, z0))) → c10(FROM(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(from(fst(s(z0), cons(z1, z2)))) → c10(FROM(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c10(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(add(0, z0))) → c10(FROM(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(from(add(s(z0), z1))) → c10(FROM(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(from(len(cons(z0, z1)))) → c10(FROM(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(from(cons(z0, z1))) → c10(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(from(fst(z0, z1))) → c10(FROM(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(from(from(z0))) → c10(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(from(add(z0, z1))) → c10(FROM(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(from(len(z0))) → c10(FROM(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(len(fst(0, z0))) → c13(LEN(mark(nil)), ACTIVE(fst(0, z0)))
ACTIVE(len(fst(s(z0), cons(z1, z2)))) → c13(LEN(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
ACTIVE(len(from(z0))) → c13(LEN(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(len(add(0, z0))) → c13(LEN(mark(z0)), ACTIVE(add(0, z0)))
ACTIVE(len(add(s(z0), z1))) → c13(LEN(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
ACTIVE(len(len(cons(z0, z1)))) → c13(LEN(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
ACTIVE(len(cons(z0, z1))) → c13(LEN(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
ACTIVE(len(fst(z0, z1))) → c13(LEN(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
ACTIVE(len(from(z0))) → c13(LEN(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(active(z0), z1)), ACTIVE(add(z0, z1)))
ACTIVE(len(add(z0, z1))) → c13(LEN(add(z0, active(z1))), ACTIVE(add(z0, z1)))
ACTIVE(len(len(z0))) → c13(LEN(len(active(z0))), ACTIVE(len(z0)))
ACTIVE(cons(len(nil), x1)) → c7(CONS(mark(0), x1))
ACTIVE(from(len(nil))) → c10(FROM(mark(0)))
ACTIVE(len(len(nil))) → c13(LEN(mark(0)))
PROPER(s(s(z0))) → c27(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c27(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(fst(z0, z1))) → c27(S(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(s(from(z0))) → c27(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(add(z0, z1))) → c27(S(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(s(len(z0))) → c27(S(len(proper(z0))), PROPER(len(z0)))
PROPER(s(0)) → c27(S(ok(0)))
PROPER(s(nil)) → c27(S(ok(nil)))
PROPER(cons(x0, s(z0))) → c29(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c29(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, fst(z0, z1))) → c29(CONS(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(cons(x0, from(z0))) → c29(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, add(z0, z1))) → c29(CONS(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(cons(x0, len(z0))) → c29(CONS(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(cons(s(z0), x1)) → c29(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c29(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(fst(z0, z1), x1)) → c29(CONS(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c29(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(add(z0, z1), x1)) → c29(CONS(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(cons(len(z0), x1)) → c29(CONS(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c29(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c29(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c29(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c29(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(fst(x0, s(z0))) → c30(FST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(fst(x0, cons(z0, z1))) → c30(FST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(fst(x0, fst(z0, z1))) → c30(FST(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(fst(x0, from(z0))) → c30(FST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(fst(x0, add(z0, z1))) → c30(FST(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(fst(x0, len(z0))) → c30(FST(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(fst(s(z0), x1)) → c30(FST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(fst(cons(z0, z1), x1)) → c30(FST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(fst(fst(z0, z1), x1)) → c30(FST(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(fst(from(z0), x1)) → c30(FST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(fst(add(z0, z1), x1)) → c30(FST(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(fst(len(z0), x1)) → c30(FST(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(fst(x0, 0)) → c30(FST(proper(x0), ok(0)), PROPER(x0))
PROPER(fst(x0, nil)) → c30(FST(proper(x0), ok(nil)), PROPER(x0))
PROPER(fst(0, x1)) → c30(FST(ok(0), proper(x1)), PROPER(x1))
PROPER(fst(nil, x1)) → c30(FST(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(s(z0))) → c31(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c31(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(fst(z0, z1))) → c31(FROM(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(from(from(z0))) → c31(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(add(z0, z1))) → c31(FROM(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(from(len(z0))) → c31(FROM(len(proper(z0))), PROPER(len(z0)))
PROPER(from(0)) → c31(FROM(ok(0)))
PROPER(from(nil)) → c31(FROM(ok(nil)))
PROPER(add(x0, s(z0))) → c32(ADD(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(add(x0, cons(z0, z1))) → c32(ADD(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(add(x0, fst(z0, z1))) → c32(ADD(proper(x0), fst(proper(z0), proper(z1))), PROPER(x0), PROPER(fst(z0, z1)))
PROPER(add(x0, from(z0))) → c32(ADD(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(add(x0, add(z0, z1))) → c32(ADD(proper(x0), add(proper(z0), proper(z1))), PROPER(x0), PROPER(add(z0, z1)))
PROPER(add(x0, len(z0))) → c32(ADD(proper(x0), len(proper(z0))), PROPER(x0), PROPER(len(z0)))
PROPER(add(s(z0), x1)) → c32(ADD(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(add(cons(z0, z1), x1)) → c32(ADD(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(add(fst(z0, z1), x1)) → c32(ADD(fst(proper(z0), proper(z1)), proper(x1)), PROPER(fst(z0, z1)), PROPER(x1))
PROPER(add(from(z0), x1)) → c32(ADD(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(add(add(z0, z1), x1)) → c32(ADD(add(proper(z0), proper(z1)), proper(x1)), PROPER(add(z0, z1)), PROPER(x1))
PROPER(add(len(z0), x1)) → c32(ADD(len(proper(z0)), proper(x1)), PROPER(len(z0)), PROPER(x1))
PROPER(add(x0, 0)) → c32(ADD(proper(x0), ok(0)), PROPER(x0))
PROPER(add(x0, nil)) → c32(ADD(proper(x0), ok(nil)), PROPER(x0))
PROPER(add(0, x1)) → c32(ADD(ok(0), proper(x1)), PROPER(x1))
PROPER(add(nil, x1)) → c32(ADD(ok(nil), proper(x1)), PROPER(x1))
PROPER(len(s(z0))) → c33(LEN(s(proper(z0))), PROPER(s(z0)))
PROPER(len(cons(z0, z1))) → c33(LEN(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(len(fst(z0, z1))) → c33(LEN(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
PROPER(len(from(z0))) → c33(LEN(from(proper(z0))), PROPER(from(z0)))
PROPER(len(add(z0, z1))) → c33(LEN(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
PROPER(len(len(z0))) → c33(LEN(len(proper(z0))), PROPER(len(z0)))
PROPER(len(0)) → c33(LEN(ok(0)))
PROPER(len(nil)) → c33(LEN(ok(nil)))
TOP(mark(s(z0))) → c35(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(cons(z0, z1))) → c35(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(fst(z0, z1))) → c35(TOP(fst(proper(z0), proper(z1))), PROPER(fst(z0, z1)))
TOP(mark(from(z0))) → c35(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(add(z0, z1))) → c35(TOP(add(proper(z0), proper(z1))), PROPER(add(z0, z1)))
TOP(mark(len(z0))) → c35(TOP(len(proper(z0))), PROPER(len(z0)))
TOP(ok(fst(0, z0))) → c36(TOP(mark(nil)), ACTIVE(fst(0, z0)))
TOP(ok(fst(s(z0), cons(z1, z2)))) → c36(TOP(mark(cons(z1, fst(z0, z2)))), ACTIVE(fst(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c36(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(add(0, z0))) → c36(TOP(mark(z0)), ACTIVE(add(0, z0)))
TOP(ok(add(s(z0), z1))) → c36(TOP(mark(s(add(z0, z1)))), ACTIVE(add(s(z0), z1)))
TOP(ok(len(nil))) → c36(TOP(mark(0)), ACTIVE(len(nil)))
TOP(ok(len(cons(z0, z1)))) → c36(TOP(mark(s(len(z1)))), ACTIVE(len(cons(z0, z1))))
TOP(ok(cons(z0, z1))) → c36(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(active(z0), z1)), ACTIVE(fst(z0, z1)))
TOP(ok(fst(z0, z1))) → c36(TOP(fst(z0, active(z1))), ACTIVE(fst(z0, z1)))
TOP(ok(from(z0))) → c36(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(add(z0, z1))) → c36(TOP(add(active(z0), z1)), ACTIVE(add(z0, z1)))
TOP(ok(add(z0, z1))) → c36(TOP(add(z0, active(z1))), ACTIVE(add(z0, z1)))
TOP(ok(len(z0))) → c36(TOP(len(active(z0))), ACTIVE(len(z0)))

(54) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))
Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
S tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
K tuples:none
Defined Rule Symbols:

active, cons, fst, s, add, len, from, proper

Defined Pair Symbols:

CONS, FST, FROM, ADD, LEN, S

Compound Symbols:

c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34

(55) CdtUsableRulesProof (EQUIVALENT transformation)

The following rules are not usable and were removed:

active(fst(0, z0)) → mark(nil)
active(fst(s(z0), cons(z1, z2))) → mark(cons(z1, fst(z0, z2)))
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(add(0, z0)) → mark(z0)
active(add(s(z0), z1)) → mark(s(add(z0, z1)))
active(len(nil)) → mark(0)
active(len(cons(z0, z1))) → mark(s(len(z1)))
active(cons(z0, z1)) → cons(active(z0), z1)
active(fst(z0, z1)) → fst(active(z0), z1)
active(fst(z0, z1)) → fst(z0, active(z1))
active(from(z0)) → from(active(z0))
active(add(z0, z1)) → add(active(z0), z1)
active(add(z0, z1)) → add(z0, active(z1))
active(len(z0)) → len(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
fst(mark(z0), z1) → mark(fst(z0, z1))
fst(z0, mark(z1)) → mark(fst(z0, z1))
fst(ok(z0), ok(z1)) → ok(fst(z0, z1))
s(ok(z0)) → ok(s(z0))
add(mark(z0), z1) → mark(add(z0, z1))
add(z0, mark(z1)) → mark(add(z0, z1))
add(ok(z0), ok(z1)) → ok(add(z0, z1))
len(mark(z0)) → mark(len(z0))
len(ok(z0)) → ok(len(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
proper(0) → ok(0)
proper(s(z0)) → s(proper(z0))
proper(nil) → ok(nil)
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(fst(z0, z1)) → fst(proper(z0), proper(z1))
proper(from(z0)) → from(proper(z0))
proper(add(z0, z1)) → add(proper(z0), proper(z1))
proper(len(z0)) → len(proper(z0))

(56) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
S tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
K tuples:none
Defined Rule Symbols:none

Defined Pair Symbols:

CONS, FST, FROM, ADD, LEN, S

Compound Symbols:

c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34

(57) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
S(ok(z0)) → c34(S(z0))
We considered the (Usable) Rules:none
And the Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(ADD(x1, x2)) = x1   
POL(CONS(x1, x2)) = x1   
POL(FROM(x1)) = x1   
POL(FST(x1, x2)) = x1 + x2   
POL(LEN(x1)) = 0   
POL(S(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c34(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(ok(x1)) = [2] + x1   

(58) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
S tuples:

ADD(z0, mark(z1)) → c22(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
K tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
S(ok(z0)) → c34(S(z0))
Defined Rule Symbols:none

Defined Pair Symbols:

CONS, FST, FROM, ADD, LEN, S

Compound Symbols:

c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34

(59) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

LEN(mark(z0)) → c24(LEN(z0))
We considered the (Usable) Rules:none
And the Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(ADD(x1, x2)) = 0   
POL(CONS(x1, x2)) = 0   
POL(FROM(x1)) = [2]x1   
POL(FST(x1, x2)) = 0   
POL(LEN(x1)) = x1   
POL(S(x1)) = [2]x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c34(x1)) = x1   
POL(mark(x1)) = [2] + x1   
POL(ok(x1)) = x1   

(60) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
S tuples:

ADD(z0, mark(z1)) → c22(ADD(z0, z1))
LEN(ok(z0)) → c25(LEN(z0))
K tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
S(ok(z0)) → c34(S(z0))
LEN(mark(z0)) → c24(LEN(z0))
Defined Rule Symbols:none

Defined Pair Symbols:

CONS, FST, FROM, ADD, LEN, S

Compound Symbols:

c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34

(61) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

ADD(z0, mark(z1)) → c22(ADD(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(ADD(x1, x2)) = x2   
POL(CONS(x1, x2)) = [4]x1 + [4]x2   
POL(FROM(x1)) = x1   
POL(FST(x1, x2)) = 0   
POL(LEN(x1)) = 0   
POL(S(x1)) = [2]x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c34(x1)) = x1   
POL(mark(x1)) = [1] + x1   
POL(ok(x1)) = x1   

(62) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
S tuples:

LEN(ok(z0)) → c25(LEN(z0))
K tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
S(ok(z0)) → c34(S(z0))
LEN(mark(z0)) → c24(LEN(z0))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
Defined Rule Symbols:none

Defined Pair Symbols:

CONS, FST, FROM, ADD, LEN, S

Compound Symbols:

c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34

(63) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)

Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.

LEN(ok(z0)) → c25(LEN(z0))
We considered the (Usable) Rules:none
And the Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(ADD(x1, x2)) = [4]x1   
POL(CONS(x1, x2)) = 0   
POL(FROM(x1)) = [3]x1   
POL(FST(x1, x2)) = [3]x1 + [2]x2   
POL(LEN(x1)) = [4]x1   
POL(S(x1)) = [4]x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1)) = x1   
POL(c18(x1)) = x1   
POL(c19(x1)) = x1   
POL(c20(x1)) = x1   
POL(c21(x1)) = x1   
POL(c22(x1)) = x1   
POL(c23(x1)) = x1   
POL(c24(x1)) = x1   
POL(c25(x1)) = x1   
POL(c34(x1)) = x1   
POL(mark(x1)) = x1   
POL(ok(x1)) = [1] + x1   

(64) Obligation:

Complexity Dependency Tuples Problem
Rules:none
Tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
LEN(mark(z0)) → c24(LEN(z0))
LEN(ok(z0)) → c25(LEN(z0))
S(ok(z0)) → c34(S(z0))
S tuples:none
K tuples:

CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
FST(mark(z0), z1) → c16(FST(z0, z1))
FST(z0, mark(z1)) → c17(FST(z0, z1))
FST(ok(z0), ok(z1)) → c18(FST(z0, z1))
FROM(mark(z0)) → c19(FROM(z0))
FROM(ok(z0)) → c20(FROM(z0))
ADD(mark(z0), z1) → c21(ADD(z0, z1))
ADD(ok(z0), ok(z1)) → c23(ADD(z0, z1))
S(ok(z0)) → c34(S(z0))
LEN(mark(z0)) → c24(LEN(z0))
ADD(z0, mark(z1)) → c22(ADD(z0, z1))
LEN(ok(z0)) → c25(LEN(z0))
Defined Rule Symbols:none

Defined Pair Symbols:

CONS, FST, FROM, ADD, LEN, S

Compound Symbols:

c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c34

(65) SIsEmptyProof (BOTH BOUNDS(ID, ID) transformation)

The set S is empty

(66) BOUNDS(O(1), O(1))