(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
active(from(X)) → mark(cons(X, from(s(X))))
active(first(0, Z)) → mark(nil)
active(first(s(X), cons(Y, Z))) → mark(cons(Y, first(X, Z)))
active(sel(0, cons(X, Z))) → mark(X)
active(sel(s(X), cons(Y, Z))) → mark(sel(X, Z))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
active(first(X1, X2)) → first(active(X1), X2)
active(first(X1, X2)) → first(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
first(mark(X1), X2) → mark(first(X1, X2))
first(X1, mark(X2)) → mark(first(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(first(X1, X2)) → first(proper(X1), proper(X2))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
first(ok(X1), ok(X2)) → ok(first(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))
Rewrite Strategy: INNERMOST
(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)
Converted Cpx (relative) TRS to CDT
(2) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
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(mark(z0), z1) → mark(first(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(first(0, z0)) → c1
ACTIVE(first(s(z0), cons(z1, z2))) → c2(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(sel(0, cons(z0, z1))) → c3
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(0) → c28
PROPER(nil) → c29
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
S tuples:
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(first(0, z0)) → c1
ACTIVE(first(s(z0), cons(z1, z2))) → c2(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(sel(0, cons(z0, z1))) → c3
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(0) → c28
PROPER(nil) → c29
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
K tuples:none
Defined Rule Symbols:
active, from, cons, s, first, sel, proper, top
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32
(3) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID) transformation)
Removed 4 trailing nodes:
ACTIVE(first(0, z0)) → c1
PROPER(nil) → c29
ACTIVE(sel(0, cons(z0, z1))) → c3
PROPER(0) → c28
(4) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
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(mark(z0), z1) → mark(first(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c2(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
S tuples:
ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c2(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
K tuples:none
Defined Rule Symbols:
active, from, cons, s, first, sel, proper, top
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c, c2, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c30, c31, c32
(5) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 2 trailing tuple parts
(6) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
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(mark(z0), z1) → mark(first(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:
ACTIVE(first(s(z0), cons(z1, z2))) → c2(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
S tuples:
ACTIVE(first(s(z0), cons(z1, z2))) → c2(CONS(z1, first(z0, z2)), FIRST(z0, z2))
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
K tuples:none
Defined Rule Symbols:
active, from, cons, s, first, sel, proper, top
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c2, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c30, c31, c32, c
(7) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID) transformation)
Split RHS of tuples not part of any SCC
(8) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
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(mark(z0), z1) → mark(first(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
K tuples:none
Defined Rule Symbols:
active, from, cons, s, first, sel, proper, top
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c30, c31, c32, c, c1
(9) CdtUsableRulesProof (EQUIVALENT transformation)
The following rules are not usable and were removed:
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
(10) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(from(z0)) → c5(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c30, c31, c32, c, c1
(11) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
ACTIVE(
from(
z0)) →
c5(
FROM(
active(
z0)),
ACTIVE(
z0)) by
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
(12) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(cons(z0, z1)) → c6(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c30, c31, c32, c, c1, c5
(13) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
ACTIVE(
cons(
z0,
z1)) →
c6(
CONS(
active(
z0),
z1),
ACTIVE(
z0)) by
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
(14) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(s(z0)) → c7(S(active(z0)), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c30, c31, c32, c, c1, c5, c6
(15) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
ACTIVE(
s(
z0)) →
c7(
S(
active(
z0)),
ACTIVE(
z0)) by
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
(16) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(from(z0)) → c24(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c30, c31, c32, c, c1, c5, c6, c7
(17) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
PROPER(
from(
z0)) →
c24(
FROM(
proper(
z0)),
PROPER(
z0)) by
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)), PROPER(0))
PROPER(from(nil)) → c24(FROM(ok(nil)), PROPER(nil))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
(18) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)), PROPER(0))
PROPER(from(nil)) → c24(FROM(ok(nil)), PROPER(nil))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)), PROPER(0))
PROPER(from(nil)) → c24(FROM(ok(nil)), PROPER(nil))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c25, c26, c27, c30, c31, c32, c, c1, c5, c6, c7, c24
(19) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 2 trailing tuple parts
(20) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(cons(z0, z1)) → c25(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c25, c26, c27, c30, c31, c32, c, c1, c5, c6, c7, c24, c24
(21) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
PROPER(
cons(
z0,
z1)) →
c25(
CONS(
proper(
z0),
proper(
z1)),
PROPER(
z0),
PROPER(
z1)) by
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
(22) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c26, c27, c30, c31, c32, c, c1, c5, c6, c7, c24, c24, c25
(23) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 4 trailing tuple parts
(24) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(s(z0)) → c26(S(proper(z0)), PROPER(z0))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c26, c27, c30, c31, c32, c, c1, c5, c6, c7, c24, c24, c25, c25
(25) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
PROPER(
s(
z0)) →
c26(
S(
proper(
z0)),
PROPER(
z0)) by
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)), PROPER(0))
PROPER(s(nil)) → c26(S(ok(nil)), PROPER(nil))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
(26) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)), PROPER(0))
PROPER(s(nil)) → c26(S(ok(nil)), PROPER(nil))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)), PROPER(0))
PROPER(s(nil)) → c26(S(ok(nil)), PROPER(nil))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c27, c30, c31, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26
(27) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 2 trailing tuple parts
(28) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(first(z0, z1)) → c27(FIRST(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c27, c30, c31, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26
(29) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
PROPER(
first(
z0,
z1)) →
c27(
FIRST(
proper(
z0),
proper(
z1)),
PROPER(
z0),
PROPER(
z1)) by
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
(30) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c30, c31, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27
(31) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 4 trailing tuple parts
(32) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
PROPER(sel(z0, z1)) → c30(SEL(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c30, c31, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27
(33) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
PROPER(
sel(
z0,
z1)) →
c30(
SEL(
proper(
z0),
proper(
z1)),
PROPER(
z0),
PROPER(
z1)) by
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
(34) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, TOP, PROPER
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c31, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30
(35) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 4 trailing tuple parts
(36) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(mark(z0)) → c31(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, TOP, PROPER
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c31, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30, c30
(37) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
TOP(
mark(
z0)) →
c31(
TOP(
proper(
z0)),
PROPER(
z0)) by
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)), PROPER(0))
TOP(mark(nil)) → c31(TOP(ok(nil)), PROPER(nil))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
(38) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)), PROPER(0))
TOP(mark(nil)) → c31(TOP(ok(nil)), PROPER(nil))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)), PROPER(0))
TOP(mark(nil)) → c31(TOP(ok(nil)), PROPER(nil))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, TOP, PROPER
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30, c30, c31
(39) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)
Removed 2 trailing tuple parts
(40) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, TOP, PROPER
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30, c30, c31, c31
(41) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
TOP(mark(nil)) → c31(TOP(ok(nil)))
We considered the (Usable) Rules:
active(cons(z0, z1)) → cons(active(z0), z1)
s(mark(z0)) → mark(s(z0))
sel(z0, mark(z1)) → mark(sel(z0, z1))
active(sel(0, cons(z0, z1))) → mark(z0)
from(mark(z0)) → mark(from(z0))
active(sel(z0, z1)) → sel(z0, active(z1))
first(mark(z0), z1) → mark(first(z0, z1))
active(s(z0)) → s(active(z0))
active(sel(z0, z1)) → sel(active(z0), z1)
active(from(z0)) → from(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
active(first(z0, z1)) → first(active(z0), z1)
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
first(z0, mark(z1)) → mark(first(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
from(ok(z0)) → ok(from(z0))
active(first(z0, z1)) → first(z0, active(z1))
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
cons(mark(z0), z1) → mark(cons(z0, z1))
s(ok(z0)) → ok(s(z0))
And the Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(0) = [2]
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(SEL(x1, x2)) = 0
POL(TOP(x1)) = x1
POL(active(x1)) = x1
POL(c(x1)) = x1
POL(c1(x1)) = x1
POL(c10(x1, x2)) = x1 + x2
POL(c11(x1, x2)) = x1 + x2
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(c24(x1)) = x1
POL(c24(x1, x2)) = x1 + x2
POL(c25(x1, x2)) = x1 + x2
POL(c25(x1, x2, x3)) = x1 + x2 + x3
POL(c26(x1)) = x1
POL(c26(x1, x2)) = x1 + x2
POL(c27(x1, x2)) = x1 + x2
POL(c27(x1, x2, x3)) = x1 + x2 + x3
POL(c30(x1, x2)) = x1 + x2
POL(c30(x1, x2, x3)) = x1 + x2 + x3
POL(c31(x1)) = x1
POL(c31(x1, x2)) = x1 + x2
POL(c32(x1, x2)) = x1 + x2
POL(c4(x1)) = x1
POL(c5(x1, x2)) = x1 + x2
POL(c6(x1, x2)) = x1 + x2
POL(c7(x1, x2)) = x1 + x2
POL(c8(x1, x2)) = x1 + x2
POL(c9(x1, x2)) = x1 + x2
POL(cons(x1, x2)) = [2]
POL(first(x1, x2)) = [2]
POL(from(x1)) = [2]
POL(mark(x1)) = [2]
POL(nil) = [1]
POL(ok(x1)) = x1
POL(proper(x1)) = 0
POL(s(x1)) = [2]
POL(sel(x1, x2)) = [2]
(42) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
K tuples:
TOP(mark(nil)) → c31(TOP(ok(nil)))
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, TOP, PROPER
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30, c30, c31, c31
(43) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
TOP(mark(0)) → c31(TOP(ok(0)))
We considered the (Usable) Rules:
active(cons(z0, z1)) → cons(active(z0), z1)
s(mark(z0)) → mark(s(z0))
sel(z0, mark(z1)) → mark(sel(z0, z1))
active(sel(0, cons(z0, z1))) → mark(z0)
from(mark(z0)) → mark(from(z0))
active(sel(z0, z1)) → sel(z0, active(z1))
first(mark(z0), z1) → mark(first(z0, z1))
active(s(z0)) → s(active(z0))
active(sel(z0, z1)) → sel(active(z0), z1)
active(from(z0)) → from(active(z0))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
active(first(z0, z1)) → first(active(z0), z1)
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
first(z0, mark(z1)) → mark(first(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
from(ok(z0)) → ok(from(z0))
active(first(z0, z1)) → first(z0, active(z1))
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
cons(mark(z0), z1) → mark(cons(z0, z1))
s(ok(z0)) → ok(s(z0))
And the Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
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(SEL(x1, x2)) = 0
POL(TOP(x1)) = x1
POL(active(x1)) = x1
POL(c(x1)) = x1
POL(c1(x1)) = x1
POL(c10(x1, x2)) = x1 + x2
POL(c11(x1, x2)) = x1 + x2
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(c24(x1)) = x1
POL(c24(x1, x2)) = x1 + x2
POL(c25(x1, x2)) = x1 + x2
POL(c25(x1, x2, x3)) = x1 + x2 + x3
POL(c26(x1)) = x1
POL(c26(x1, x2)) = x1 + x2
POL(c27(x1, x2)) = x1 + x2
POL(c27(x1, x2, x3)) = x1 + x2 + x3
POL(c30(x1, x2)) = x1 + x2
POL(c30(x1, x2, x3)) = x1 + x2 + x3
POL(c31(x1)) = x1
POL(c31(x1, x2)) = x1 + x2
POL(c32(x1, x2)) = x1 + x2
POL(c4(x1)) = x1
POL(c5(x1, x2)) = x1 + x2
POL(c6(x1, x2)) = x1 + x2
POL(c7(x1, x2)) = x1 + x2
POL(c8(x1, x2)) = x1 + x2
POL(c9(x1, x2)) = x1 + x2
POL(cons(x1, x2)) = [4]
POL(first(x1, x2)) = [4]
POL(from(x1)) = [4]
POL(mark(x1)) = [4]
POL(nil) = 0
POL(ok(x1)) = x1
POL(proper(x1)) = 0
POL(s(x1)) = [4]
POL(sel(x1, x2)) = [4]
(44) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
TOP(ok(z0)) → c32(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
K tuples:
TOP(mark(nil)) → c31(TOP(ok(nil)))
TOP(mark(0)) → c31(TOP(ok(0)))
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, TOP, PROPER
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c32, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30, c30, c31, c31
(45) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)
Use narrowing to replace
TOP(
ok(
z0)) →
c32(
TOP(
active(
z0)),
ACTIVE(
z0)) by
TOP(ok(from(z0))) → c32(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(0, z0))) → c32(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c32(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(sel(0, cons(z0, z1)))) → c32(TOP(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
TOP(ok(sel(s(z0), cons(z1, z2)))) → c32(TOP(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c32(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(cons(z0, z1))) → c32(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(s(z0))) → c32(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(first(z0, z1))) → c32(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c32(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
(46) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
TOP(ok(from(z0))) → c32(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(0, z0))) → c32(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c32(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(sel(0, cons(z0, z1)))) → c32(TOP(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
TOP(ok(sel(s(z0), cons(z1, z2)))) → c32(TOP(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c32(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(cons(z0, z1))) → c32(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(s(z0))) → c32(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(first(z0, z1))) → c32(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c32(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(ok(from(z0))) → c32(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(0, z0))) → c32(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c32(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(sel(0, cons(z0, z1)))) → c32(TOP(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
TOP(ok(sel(s(z0), cons(z1, z2)))) → c32(TOP(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c32(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(cons(z0, z1))) → c32(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(s(z0))) → c32(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(first(z0, z1))) → c32(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c32(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
K tuples:
TOP(mark(nil)) → c31(TOP(ok(nil)))
TOP(mark(0)) → c31(TOP(ok(0)))
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30, c30, c31, c31, c32
(47) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID) transformation)
Removed 2 trailing nodes:
TOP(mark(0)) → c31(TOP(ok(0)))
TOP(mark(nil)) → c31(TOP(ok(nil)))
(48) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(ok(from(z0))) → c32(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(0, z0))) → c32(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c32(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(sel(0, cons(z0, z1)))) → c32(TOP(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
TOP(ok(sel(s(z0), cons(z1, z2)))) → c32(TOP(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c32(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(cons(z0, z1))) → c32(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(s(z0))) → c32(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(first(z0, z1))) → c32(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c32(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
S tuples:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(ok(from(z0))) → c32(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(0, z0))) → c32(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c32(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(sel(0, cons(z0, z1)))) → c32(TOP(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
TOP(ok(sel(s(z0), cons(z1, z2)))) → c32(TOP(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c32(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(cons(z0, z1))) → c32(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(s(z0))) → c32(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(first(z0, z1))) → c32(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c32(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
ACTIVE, FROM, CONS, S, FIRST, SEL, PROPER, TOP
Compound Symbols:
c4, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c, c1, c5, c6, c7, c24, c24, c25, c25, c26, c26, c27, c27, c30, c30, c31, c32
(49) CdtUnreachableProof (EQUIVALENT transformation)
The following tuples could be removed as they are not reachable from basic start terms:
ACTIVE(sel(s(z0), cons(z1, z2))) → c4(SEL(z0, z2))
ACTIVE(first(z0, z1)) → c8(FIRST(active(z0), z1), ACTIVE(z0))
ACTIVE(first(z0, z1)) → c9(FIRST(z0, active(z1)), ACTIVE(z1))
ACTIVE(sel(z0, z1)) → c10(SEL(active(z0), z1), ACTIVE(z0))
ACTIVE(sel(z0, z1)) → c11(SEL(z0, active(z1)), ACTIVE(z1))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(CONS(z1, first(z0, z2)))
ACTIVE(first(s(z0), cons(z1, z2))) → c1(FIRST(z0, z2))
ACTIVE(from(from(z0))) → c5(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(first(0, z0))) → c5(FROM(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(from(first(s(z0), cons(z1, z2)))) → c5(FROM(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(from(sel(0, cons(z0, z1)))) → c5(FROM(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(from(sel(s(z0), cons(z1, z2)))) → c5(FROM(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(from(from(z0))) → c5(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c5(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c5(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(from(first(z0, z1))) → c5(FROM(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(from(sel(z0, z1))) → c5(FROM(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
ACTIVE(cons(from(z0), x1)) → c6(CONS(mark(cons(z0, from(s(z0)))), x1), 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(sel(0, cons(z0, z1)), x1)) → c6(CONS(mark(z0), x1), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(cons(sel(s(z0), cons(z1, z2)), x1)) → c6(CONS(mark(sel(z0, z2)), x1), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(cons(from(z0), x1)) → c6(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c6(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c6(CONS(s(active(z0)), x1), ACTIVE(s(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(sel(z0, z1), x1)) → c6(CONS(sel(active(z0), z1), x1), ACTIVE(sel(z0, z1)))
ACTIVE(cons(sel(z0, z1), x1)) → c6(CONS(sel(z0, active(z1)), x1), ACTIVE(sel(z0, z1)))
ACTIVE(s(from(z0))) → c7(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(first(0, z0))) → c7(S(mark(nil)), ACTIVE(first(0, z0)))
ACTIVE(s(first(s(z0), cons(z1, z2)))) → c7(S(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
ACTIVE(s(sel(0, cons(z0, z1)))) → c7(S(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
ACTIVE(s(sel(s(z0), cons(z1, z2)))) → c7(S(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
ACTIVE(s(from(z0))) → c7(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c7(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c7(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(first(z0, z1))) → c7(S(first(active(z0), z1)), ACTIVE(first(z0, z1)))
ACTIVE(s(first(z0, z1))) → c7(S(first(z0, active(z1))), ACTIVE(first(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
ACTIVE(s(sel(z0, z1))) → c7(S(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
PROPER(from(from(z0))) → c24(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c24(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c24(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(first(z0, z1))) → c24(FROM(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(from(sel(z0, z1))) → c24(FROM(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(from(0)) → c24(FROM(ok(0)))
PROPER(from(nil)) → c24(FROM(ok(nil)))
PROPER(cons(x0, from(z0))) → c25(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c25(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c25(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, first(z0, z1))) → c25(CONS(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(cons(x0, sel(z0, z1))) → c25(CONS(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(cons(from(z0), x1)) → c25(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c25(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c25(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(first(z0, z1), x1)) → c25(CONS(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(cons(sel(z0, z1), x1)) → c25(CONS(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(cons(x0, 0)) → c25(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(x0, nil)) → c25(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(0, x1)) → c25(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(cons(nil, x1)) → c25(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c26(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c26(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c26(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(first(z0, z1))) → c26(S(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
PROPER(s(sel(z0, z1))) → c26(S(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
PROPER(s(0)) → c26(S(ok(0)))
PROPER(s(nil)) → c26(S(ok(nil)))
PROPER(first(x0, from(z0))) → c27(FIRST(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(first(x0, cons(z0, z1))) → c27(FIRST(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(first(x0, s(z0))) → c27(FIRST(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(first(x0, first(z0, z1))) → c27(FIRST(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(first(x0, sel(z0, z1))) → c27(FIRST(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(first(from(z0), x1)) → c27(FIRST(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(first(cons(z0, z1), x1)) → c27(FIRST(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(first(s(z0), x1)) → c27(FIRST(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(first(first(z0, z1), x1)) → c27(FIRST(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(first(sel(z0, z1), x1)) → c27(FIRST(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(first(x0, 0)) → c27(FIRST(proper(x0), ok(0)), PROPER(x0))
PROPER(first(x0, nil)) → c27(FIRST(proper(x0), ok(nil)), PROPER(x0))
PROPER(first(0, x1)) → c27(FIRST(ok(0), proper(x1)), PROPER(x1))
PROPER(first(nil, x1)) → c27(FIRST(ok(nil), proper(x1)), PROPER(x1))
PROPER(sel(x0, from(z0))) → c30(SEL(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(sel(x0, cons(z0, z1))) → c30(SEL(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(sel(x0, s(z0))) → c30(SEL(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(sel(x0, first(z0, z1))) → c30(SEL(proper(x0), first(proper(z0), proper(z1))), PROPER(x0), PROPER(first(z0, z1)))
PROPER(sel(x0, sel(z0, z1))) → c30(SEL(proper(x0), sel(proper(z0), proper(z1))), PROPER(x0), PROPER(sel(z0, z1)))
PROPER(sel(from(z0), x1)) → c30(SEL(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(sel(cons(z0, z1), x1)) → c30(SEL(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(sel(s(z0), x1)) → c30(SEL(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(sel(first(z0, z1), x1)) → c30(SEL(first(proper(z0), proper(z1)), proper(x1)), PROPER(first(z0, z1)), PROPER(x1))
PROPER(sel(sel(z0, z1), x1)) → c30(SEL(sel(proper(z0), proper(z1)), proper(x1)), PROPER(sel(z0, z1)), PROPER(x1))
PROPER(sel(x0, 0)) → c30(SEL(proper(x0), ok(0)), PROPER(x0))
PROPER(sel(x0, nil)) → c30(SEL(proper(x0), ok(nil)), PROPER(x0))
PROPER(sel(0, x1)) → c30(SEL(ok(0), proper(x1)), PROPER(x1))
PROPER(sel(nil, x1)) → c30(SEL(ok(nil), proper(x1)), PROPER(x1))
TOP(mark(from(z0))) → c31(TOP(from(proper(z0))), PROPER(from(z0)))
TOP(mark(cons(z0, z1))) → c31(TOP(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
TOP(mark(s(z0))) → c31(TOP(s(proper(z0))), PROPER(s(z0)))
TOP(mark(first(z0, z1))) → c31(TOP(first(proper(z0), proper(z1))), PROPER(first(z0, z1)))
TOP(mark(sel(z0, z1))) → c31(TOP(sel(proper(z0), proper(z1))), PROPER(sel(z0, z1)))
TOP(ok(from(z0))) → c32(TOP(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
TOP(ok(first(0, z0))) → c32(TOP(mark(nil)), ACTIVE(first(0, z0)))
TOP(ok(first(s(z0), cons(z1, z2)))) → c32(TOP(mark(cons(z1, first(z0, z2)))), ACTIVE(first(s(z0), cons(z1, z2))))
TOP(ok(sel(0, cons(z0, z1)))) → c32(TOP(mark(z0)), ACTIVE(sel(0, cons(z0, z1))))
TOP(ok(sel(s(z0), cons(z1, z2)))) → c32(TOP(mark(sel(z0, z2))), ACTIVE(sel(s(z0), cons(z1, z2))))
TOP(ok(from(z0))) → c32(TOP(from(active(z0))), ACTIVE(from(z0)))
TOP(ok(cons(z0, z1))) → c32(TOP(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
TOP(ok(s(z0))) → c32(TOP(s(active(z0))), ACTIVE(s(z0)))
TOP(ok(first(z0, z1))) → c32(TOP(first(active(z0), z1)), ACTIVE(first(z0, z1)))
TOP(ok(first(z0, z1))) → c32(TOP(first(z0, active(z1))), ACTIVE(first(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(active(z0), z1)), ACTIVE(sel(z0, z1)))
TOP(ok(sel(z0, z1))) → c32(TOP(sel(z0, active(z1))), ACTIVE(sel(z0, z1)))
(50) Obligation:
Complexity Dependency Tuples Problem
Rules:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
K tuples:none
Defined Rule Symbols:
active, cons, first, sel, from, s, proper
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(51) CdtUsableRulesProof (EQUIVALENT transformation)
The following rules are not usable and were removed:
active(from(z0)) → mark(cons(z0, from(s(z0))))
active(first(0, z0)) → mark(nil)
active(first(s(z0), cons(z1, z2))) → mark(cons(z1, first(z0, z2)))
active(sel(0, cons(z0, z1))) → mark(z0)
active(sel(s(z0), cons(z1, z2))) → mark(sel(z0, z2))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
active(first(z0, z1)) → first(active(z0), z1)
active(first(z0, z1)) → first(z0, active(z1))
active(sel(z0, z1)) → sel(active(z0), z1)
active(sel(z0, z1)) → sel(z0, active(z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
cons(mark(z0), z1) → mark(cons(z0, z1))
first(z0, mark(z1)) → mark(first(z0, z1))
first(mark(z0), z1) → mark(first(z0, z1))
first(ok(z0), ok(z1)) → ok(first(z0, z1))
sel(z0, mark(z1)) → mark(sel(z0, z1))
sel(mark(z0), z1) → mark(sel(z0, z1))
sel(ok(z0), ok(z1)) → ok(sel(z0, z1))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(first(z0, z1)) → first(proper(z0), proper(z1))
proper(0) → ok(0)
proper(nil) → ok(nil)
proper(sel(z0, z1)) → sel(proper(z0), proper(z1))
(52) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
K tuples:none
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(53) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(CONS(x1, x2)) = 0
POL(FIRST(x1, x2)) = x1 + [4]x2
POL(FROM(x1)) = [2]x1
POL(S(x1)) = 0
POL(SEL(x1, x2)) = [4]x1
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(mark(x1)) = [2] + x1
POL(ok(x1)) = x1
(54) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
K tuples:
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(55) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
FROM(ok(z0)) → c13(FROM(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(CONS(x1, x2)) = 0
POL(FIRST(x1, x2)) = x2
POL(FROM(x1)) = x1
POL(S(x1)) = 0
POL(SEL(x1, x2)) = [5]x1
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(mark(x1)) = [3] + x1
POL(ok(x1)) = [1] + x1
(56) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
K tuples:
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
FROM(ok(z0)) → c13(FROM(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(57) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(CONS(x1, x2)) = x2
POL(FIRST(x1, x2)) = 0
POL(FROM(x1)) = 0
POL(S(x1)) = 0
POL(SEL(x1, x2)) = 0
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(mark(x1)) = [5]
POL(ok(x1)) = [2] + x1
(58) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
CONS(mark(z0), z1) → c14(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
K tuples:
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
FROM(ok(z0)) → c13(FROM(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(59) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(CONS(x1, x2)) = 0
POL(FIRST(x1, x2)) = [4]x1
POL(FROM(x1)) = 0
POL(S(x1)) = 0
POL(SEL(x1, x2)) = [2]x1 + [4]x2
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(mark(x1)) = [2] + x1
POL(ok(x1)) = [2] + x1
(60) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
CONS(mark(z0), z1) → c14(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
K tuples:
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
FROM(ok(z0)) → c13(FROM(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(61) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
CONS(mark(z0), z1) → c14(CONS(z0, z1))
We considered the (Usable) Rules:none
And the Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(CONS(x1, x2)) = [4]x1
POL(FIRST(x1, x2)) = [2]x1 + [2]x2
POL(FROM(x1)) = 0
POL(S(x1)) = 0
POL(SEL(x1, x2)) = [2]x2
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(mark(x1)) = [4] + x1
POL(ok(x1)) = [3] + x1
(62) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
K tuples:
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
FROM(ok(z0)) → c13(FROM(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(63) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
S(mark(z0)) → c16(S(z0))
We considered the (Usable) Rules:none
And the Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(CONS(x1, x2)) = [2]x2
POL(FIRST(x1, x2)) = [4]x1
POL(FROM(x1)) = [4]x1
POL(S(x1)) = x1
POL(SEL(x1, x2)) = [4]x2
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(mark(x1)) = [1] + x1
POL(ok(x1)) = x1
(64) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:
S(ok(z0)) → c17(S(z0))
K tuples:
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
FROM(ok(z0)) → c13(FROM(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(65) CdtRuleRemovalProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
S(ok(z0)) → c17(S(z0))
We considered the (Usable) Rules:none
And the Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(CONS(x1, x2)) = [4]x1 + [2]x2
POL(FIRST(x1, x2)) = [4]x1
POL(FROM(x1)) = 0
POL(S(x1)) = [4]x1
POL(SEL(x1, x2)) = [4]x1
POL(c12(x1)) = x1
POL(c13(x1)) = x1
POL(c14(x1)) = x1
POL(c15(x1)) = x1
POL(c16(x1)) = x1
POL(c17(x1)) = x1
POL(c18(x1)) = x1
POL(c19(x1)) = x1
POL(c20(x1)) = x1
POL(c21(x1)) = x1
POL(c22(x1)) = x1
POL(c23(x1)) = x1
POL(mark(x1)) = x1
POL(ok(x1)) = [1] + x1
(66) Obligation:
Complexity Dependency Tuples Problem
Rules:none
Tuples:
FROM(mark(z0)) → c12(FROM(z0))
FROM(ok(z0)) → c13(FROM(z0))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
S tuples:none
K tuples:
FROM(mark(z0)) → c12(FROM(z0))
FIRST(mark(z0), z1) → c18(FIRST(z0, z1))
FIRST(z0, mark(z1)) → c19(FIRST(z0, z1))
SEL(mark(z0), z1) → c21(SEL(z0, z1))
FROM(ok(z0)) → c13(FROM(z0))
FIRST(ok(z0), ok(z1)) → c20(FIRST(z0, z1))
SEL(ok(z0), ok(z1)) → c23(SEL(z0, z1))
CONS(ok(z0), ok(z1)) → c15(CONS(z0, z1))
SEL(z0, mark(z1)) → c22(SEL(z0, z1))
CONS(mark(z0), z1) → c14(CONS(z0, z1))
S(mark(z0)) → c16(S(z0))
S(ok(z0)) → c17(S(z0))
Defined Rule Symbols:none
Defined Pair Symbols:
FROM, CONS, S, FIRST, SEL
Compound Symbols:
c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23
(67) SIsEmptyProof (BOTH BOUNDS(ID, ID) transformation)
The set S is empty
(68) BOUNDS(O(1), O(1))