(0) Obligation:

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

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

Rewrite Strategy: INNERMOST

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

Converted CpxTRS to CDT

(2) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(s(z0)) → c5(S(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(mark(z0)) → c23(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
S tuples:

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(from(z0)) → c2(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(s(z0)) → c5(S(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(mark(z0)) → c23(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
K tuples:none
Defined Rule Symbols:

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 2 trailing tuple parts

(4) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(s(z0)) → c5(S(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(mark(z0)) → c23(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
S tuples:

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(s(z0)) → c5(S(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(mark(z0)) → c23(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
K tuples:none
Defined Rule Symbols:

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

(5) CdtPolyRedPairProof (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)) → c23(TOP(proper(z0)), PROPER(z0))
We considered the (Usable) Rules:

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(s(z0)) → c5(S(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(mark(z0)) → c23(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(0) = [3]   
POL(ACTIVE(x1)) = 0   
POL(CONS(x1, x2)) = 0   
POL(FIRST(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(PROPER(x1)) = 0   
POL(S(x1)) = 0   
POL(TOP(x1)) = x1   
POL(active(x1)) = x1   
POL(c1(x1, x2)) = x1 + x2   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c17(x1, x2, x3)) = x1 + x2 + x3   
POL(c2(x1)) = x1   
POL(c20(x1, x2)) = x1 + x2   
POL(c21(x1, x2, x3)) = x1 + x2 + x3   
POL(c22(x1, x2)) = x1 + x2   
POL(c23(x1, x2)) = x1 + x2   
POL(c24(x1, x2)) = x1 + x2   
POL(c3(x1, x2)) = x1 + x2   
POL(c4(x1, x2)) = x1 + x2   
POL(c5(x1, x2)) = x1 + x2   
POL(c6(x1, x2)) = x1 + x2   
POL(c7(x1, x2)) = x1 + x2   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(cons(x1, x2)) = [4]x1   
POL(first(x1, x2)) = [1] + [5]x1 + x2   
POL(from(x1)) = [4] + [4]x1   
POL(mark(x1)) = [4] + x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(proper(x1)) = x1   
POL(s(x1)) = [2] + [2]x1   

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(s(z0)) → c5(S(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(mark(z0)) → c23(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
S tuples:

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(s(z0)) → c5(S(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

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

ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(x0)) → c5

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(mark(z0)) → c23(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(x0)) → c5
S tuples:

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(x0)) → c5
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 1 trailing nodes:

ACTIVE(s(x0)) → c5

(10) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

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

ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(x0, x1)) → c6

(12) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(x0, x1)) → c6
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 1 trailing nodes:

ACTIVE(cons(x0, x1)) → c6

(14) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c7(FROM(active(z0)), ACTIVE(z0))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

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

ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(x0)) → c7

(16) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(x0)) → c7
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 1 trailing nodes:

ACTIVE(from(x0)) → c7

(18) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Use narrowing to replace PROPER(first(z0, z1)) → c17(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1)) by

PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, x1)) → c17

(20) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, x1)) → c17
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 1 trailing nodes:

PROPER(first(x0, x1)) → c17

(22) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 4 trailing tuple parts

(24) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(s(z0)) → c20(S(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

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

PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(0)) → c20(S(ok(0)), PROPER(0))
PROPER(s(nil)) → c20(S(ok(nil)), PROPER(nil))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(x0)) → c20

(26) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(0)) → c20(S(ok(0)), PROPER(0))
PROPER(s(nil)) → c20(S(ok(nil)), PROPER(nil))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(x0)) → c20
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 1 trailing nodes:

PROPER(s(x0)) → c20

(28) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(0)) → c20(S(ok(0)), PROPER(0))
PROPER(s(nil)) → c20(S(ok(nil)), PROPER(nil))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 2 trailing tuple parts

(30) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(cons(z0, z1)) → c21(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

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

PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, x1)) → c21

(32) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, x1)) → c21
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 1 trailing nodes:

PROPER(cons(x0, x1)) → c21

(34) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

Removed 4 trailing tuple parts

(36) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
PROPER(from(z0)) → c22(FROM(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(x1))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

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

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

PROPER(from(first(z0, z1))) → c22(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(0)) → c22(FROM(ok(0)), PROPER(0))
PROPER(from(nil)) → c22(FROM(ok(nil)), PROPER(nil))
PROPER(from(s(z0))) → c22(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c22(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(from(z0))) → c22(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(x0)) → c22

(38) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(first(z0, z1))) → c22(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(0)) → c22(FROM(ok(0)), PROPER(0))
PROPER(from(nil)) → c22(FROM(ok(nil)), PROPER(nil))
PROPER(from(s(z0))) → c22(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c22(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(from(z0))) → c22(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(x0)) → c22
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, TOP, PROPER

Compound Symbols:

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

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

Removed 1 trailing nodes:

PROPER(from(x0)) → c22

(40) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(first(z0, z1))) → c22(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(0)) → c22(FROM(ok(0)), PROPER(0))
PROPER(from(nil)) → c22(FROM(ok(nil)), PROPER(nil))
PROPER(from(s(z0))) → c22(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c22(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(from(z0))) → c22(FROM(from(proper(z0))), PROPER(from(z0)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, TOP, PROPER

Compound Symbols:

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

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

Removed 2 trailing tuple parts

(42) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(first(z0, z1))) → c22(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(s(z0))) → c22(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c22(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(from(z0))) → c22(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(0)) → c22(FROM(ok(0)))
PROPER(from(nil)) → c22(FROM(ok(nil)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, TOP, PROPER

Compound Symbols:

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

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

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

TOP(mark(first(z0, z1))) → c23(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(0)) → c23(TOP(ok(0)), PROPER(0))
TOP(mark(nil)) → c23(TOP(ok(nil)), PROPER(nil))
TOP(mark(s(z0))) → c23(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(cons(z0, z1))) → c23(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(from(z0))) → c23(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(x0)) → c23

(44) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
TOP(ok(z0)) → c24(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(first(z0, z1))) → c22(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(s(z0))) → c22(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c22(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(from(z0))) → c22(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(0)) → c22(FROM(ok(0)))
PROPER(from(nil)) → c22(FROM(ok(nil)))
K tuples:

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, TOP, PROPER

Compound Symbols:

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

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

Removed 1 trailing nodes:

TOP(mark(x0)) → c23

(46) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, TOP, PROPER

Compound Symbols:

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

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

Removed 2 trailing tuple parts

(48) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, TOP, PROPER

Compound Symbols:

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

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

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

TOP(ok(first(0, z0))) → c24(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c24(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c24(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(z0, z1))) → c24(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c24(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(s(z0))) → c24(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(cons(z0, z1))) → c24(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(from(z0))) → c24(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(x0)) → c24

(50) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

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

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

active, first, s, cons, from, proper, top

Defined Pair Symbols:

ACTIVE, FIRST, S, CONS, FROM, PROPER, TOP

Compound Symbols:

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

(51) CdtUnreachableProof (EQUIVALENT transformation)

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

ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(first(z0, z1)) → c3(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c4(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c2(S(z0))
ACTIVE(s(first(0, z0))) → c5(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c5(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c5(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(z0, z1))) → c5(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c5(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(s(z0))) → c5(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(cons(z0, z1))) → c5(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(from(z0))) → c5(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(cons(first(0, z0), x1)) → c6(CONS(mark(nil), x1), ACTIVE(first(0, z0)))
ACTIVE(cons(first(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(cons(z1, first(z0, z2))), x1), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(active(z0), z1), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(first(z0, z1), x1)) → c6(CONS(first(z0, active(z1)), x1), ACTIVE(first(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c7(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c7(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c7(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c7(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(s(z0))) → c7(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(cons(z0, z1))) → c7(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(from(z0))) → c7(FROM(from(active(z0))), ACTIVE(from(z0)))
PROPER(first(x0, first(z0, z1))) → c17(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, s(z0))) → c17(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, cons(z0, z1))) → c17(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, from(z0))) → c17(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(first(z0, z1), x1)) → c17(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c17(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c17(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(from(z0), x1)) → c17(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(x0, 0)) → c17(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c17(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c17(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c17(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(first(z0, z1))) → c20(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(s(z0))) → c20(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(cons(z0, z1))) → c20(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(from(z0))) → c20(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(0)) → c20(S(ok(0)))
PROPER(s(nil)) → c20(S(ok(nil)))
PROPER(cons(x0, first(z0, z1))) → c21(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, s(z0))) → c21(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, cons(z0, z1))) → c21(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, from(z0))) → c21(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(first(z0, z1), x1)) → c21(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c21(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c21(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(from(z0), x1)) → c21(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(x0, 0)) → c21(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c21(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c21(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c21(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(from(first(z0, z1))) → c22(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(s(z0))) → c22(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(cons(z0, z1))) → c22(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(from(z0))) → c22(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(0)) → c22(FROM(ok(0)))
PROPER(from(nil)) → c22(FROM(ok(nil)))
TOP(mark(first(z0, z1))) → c23(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(s(z0))) → c23(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(cons(z0, z1))) → c23(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(from(z0))) → c23(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(ok(first(0, z0))) → c24(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c24(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c24(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(z0, z1))) → c24(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c24(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(s(z0))) → c24(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(cons(z0, z1))) → c24(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(from(z0))) → c24(TOP(from(active(z0))), ACTIVE(from(z0)))

(52) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
TOP(mark(0)) → c23(TOP(ok(0)))
TOP(mark(nil)) → c23(TOP(ok(nil)))
TOP(ok(x0)) → c24
S tuples:

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
TOP(ok(x0)) → c24
K tuples:none
Defined Rule Symbols:

active, first, s, cons, from, proper, top

Defined Pair Symbols:

FIRST, S, CONS, FROM, TOP

Compound Symbols:

c8, c9, c10, c11, c12, c13, c14, c15, c16, c23, c24

(53) CdtLeafRemovalProof (ComplexityIfPolyImplication transformation)

Removed 3 leading nodes:

TOP(mark(0)) → c23(TOP(ok(0)))
TOP(mark(nil)) → c23(TOP(ok(nil)))
TOP(ok(x0)) → c24

(54) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
S tuples:

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
K tuples:none
Defined Rule Symbols:

active, first, s, cons, from, proper, top

Defined Pair Symbols:

FIRST, S, CONS, FROM

Compound Symbols:

c8, c9, c10, c11, c12, c13, c14, c15, c16

(55) CdtPolyRedPairProof (UPPER BOUND (ADD(O(n^1))) transformation)

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

S(mark(z0)) → c11(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(CONS(x1, x2)) = [4]x1   
POL(FIRST(x1, x2)) = 0   
POL(FROM(x1)) = 0   
POL(S(x1)) = [5]x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [4] + x1   
POL(ok(x1)) = x1   

(56) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
S tuples:

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(ok(z0)) → c12(S(z0))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
K tuples:

S(mark(z0)) → c11(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
Defined Rule Symbols:

active, first, s, cons, from, proper, top

Defined Pair Symbols:

FIRST, S, CONS, FROM

Compound Symbols:

c8, c9, c10, c11, c12, c13, c14, c15, c16

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

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

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(ok(z0)) → c12(S(z0))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
We considered the (Usable) Rules:none
And the Tuples:

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
The order we found is given by the following interpretation:
Polynomial interpretation :

POL(CONS(x1, x2)) = [5]x1 + [4]x2   
POL(FIRST(x1, x2)) = [2]x1 + x2   
POL(FROM(x1)) = [5]x1   
POL(S(x1)) = [5]x1   
POL(c10(x1)) = x1   
POL(c11(x1)) = x1   
POL(c12(x1)) = x1   
POL(c13(x1)) = x1   
POL(c14(x1)) = x1   
POL(c15(x1)) = x1   
POL(c16(x1)) = x1   
POL(c8(x1)) = x1   
POL(c9(x1)) = x1   
POL(mark(x1)) = [5] + x1   
POL(ok(x1)) = [5] + x1   

(58) Obligation:

Complexity Dependency Tuples Problem
Rules:

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

FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
S tuples:none
K tuples:

S(mark(z0)) → c11(S(z0))
CONS(mark(z0), z1) → c13(CONS(z0, z1))
FIRST(mark(z0), z1) → c8(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c9(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c10(FIRST(z0, z1))
S(ok(z0)) → c12(S(z0))
CONS(ok(z0), ok(z1)) → c14(CONS(z0, z1))
FROM(mark(z0)) → c15(FROM(z0))
FROM(ok(z0)) → c16(FROM(z0))
Defined Rule Symbols:

active, first, s, cons, from, proper, top

Defined Pair Symbols:

FIRST, S, CONS, FROM

Compound Symbols:

c8, c9, c10, c11, c12, c13, c14, c15, c16

(59) SIsEmptyProof (EQUIVALENT transformation)

The set S is empty

(60) BOUNDS(O(1), O(1))