Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → MARK(X1)
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
U311(X1, X2, active(X3), X4) → U311(X1, X2, X3, X4)
CONS(X1, mark(X2)) → CONS(X1, X2)
U311(X1, X2, X3, active(X4)) → U311(X1, X2, X3, X4)
ACTIVE(length(cons(N, L))) → AND(isNatList(L), isNat(N))
U111(X1, mark(X2)) → U111(X1, X2)
ACTIVE(isNatIList(zeros)) → MARK(tt)
MARK(length(X)) → MARK(X)
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(take(s(M), cons(N, IL))) → ISNAT(N)
MARK(take(X1, X2)) → TAKE(mark(X1), mark(X2))
U111(X1, active(X2)) → U111(X1, X2)
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
TAKE(active(X1), X2) → TAKE(X1, X2)
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(take(s(M), cons(N, IL))) → AND(isNat(M), isNat(N))
ISNATILIST(mark(X)) → ISNATILIST(X)
ACTIVE(and(tt, X)) → MARK(X)
MARK(take(X1, X2)) → MARK(X2)
CONS(mark(X1), X2) → CONS(X1, X2)
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U31(tt, IL, M, N)) → TAKE(M, IL)
MARK(U11(X1, X2)) → U111(mark(X1), X2)
ACTIVE(isNat(0)) → MARK(tt)
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
CONS(X1, active(X2)) → CONS(X1, X2)
ACTIVE(take(s(M), cons(N, IL))) → U311(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N)
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
LENGTH(mark(X)) → LENGTH(X)
U311(X1, X2, X3, mark(X4)) → U311(X1, X2, X3, X4)
LENGTH(active(X)) → LENGTH(X)
ACTIVE(isNatList(take(V1, V2))) → ISNATILIST(V2)
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
U111(active(X1), X2) → U111(X1, X2)
S(mark(X)) → S(X)
MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
ISNAT(mark(X)) → ISNAT(X)
U211(active(X)) → U211(X)
ACTIVE(length(nil)) → MARK(0)
ACTIVE(isNatList(cons(V1, V2))) → ISNATLIST(V2)
ACTIVE(isNat(s(V1))) → ISNAT(V1)
ACTIVE(isNatList(nil)) → MARK(tt)
AND(mark(X1), X2) → AND(X1, X2)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
U311(active(X1), X2, X3, X4) → U311(X1, X2, X3, X4)
MARK(tt) → ACTIVE(tt)
MARK(U21(X)) → ACTIVE(U21(mark(X)))
MARK(isNat(X)) → ACTIVE(isNat(X))
TAKE(X1, active(X2)) → TAKE(X1, X2)
U311(X1, active(X2), X3, X4) → U311(X1, X2, X3, X4)
MARK(cons(X1, X2)) → MARK(X1)
MARK(U21(X)) → U211(mark(X))
MARK(U31(X1, X2, X3, X4)) → U311(mark(X1), X2, X3, X4)
AND(X1, mark(X2)) → AND(X1, X2)
ACTIVE(take(0, IL)) → U211(isNatIList(IL))
ACTIVE(isNatList(take(V1, V2))) → AND(isNat(V1), isNatIList(V2))
ACTIVE(U21(tt)) → MARK(nil)
ACTIVE(isNatIList(V)) → ISNATLIST(V)
ACTIVE(zeros) → CONS(0, zeros)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
ACTIVE(isNatList(take(V1, V2))) → ISNAT(V1)
MARK(take(X1, X2)) → MARK(X1)
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
ACTIVE(isNatIList(cons(V1, V2))) → ISNAT(V1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
S(active(X)) → S(X)
MARK(cons(X1, X2)) → CONS(mark(X1), X2)
ACTIVE(isNatIList(cons(V1, V2))) → ISNATILIST(V2)
U211(mark(X)) → U211(X)
MARK(length(X)) → ACTIVE(length(mark(X)))
ACTIVE(isNatList(cons(V1, V2))) → ISNAT(V1)
AND(X1, active(X2)) → AND(X1, X2)
ACTIVE(isNatIList(cons(V1, V2))) → AND(isNat(V1), isNatIList(V2))
ACTIVE(take(0, IL)) → ISNATILIST(IL)
ACTIVE(U11(tt, L)) → S(length(L))
MARK(zeros) → ACTIVE(zeros)
MARK(length(X)) → LENGTH(mark(X))
U311(X1, mark(X2), X3, X4) → U311(X1, X2, X3, X4)
TAKE(mark(X1), X2) → TAKE(X1, X2)
AND(active(X1), X2) → AND(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
ISNATLIST(active(X)) → ISNATLIST(X)
U111(mark(X1), X2) → U111(X1, X2)
ACTIVE(take(s(M), cons(N, IL))) → AND(isNatIList(IL), and(isNat(M), isNat(N)))
U311(X1, X2, mark(X3), X4) → U311(X1, X2, X3, X4)
ISNATLIST(mark(X)) → ISNATLIST(X)
ACTIVE(isNat(length(V1))) → ISNATLIST(V1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(take(s(M), cons(N, IL))) → ISNATILIST(IL)
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
MARK(s(X)) → S(mark(X))
MARK(and(X1, X2)) → AND(mark(X1), X2)
ACTIVE(take(s(M), cons(N, IL))) → ISNAT(M)
ACTIVE(length(cons(N, L))) → ISNATLIST(L)
ACTIVE(U31(tt, IL, M, N)) → CONS(N, take(M, IL))
ISNAT(active(X)) → ISNAT(X)
ACTIVE(isNatList(cons(V1, V2))) → AND(isNat(V1), isNatList(V2))
MARK(U21(X)) → MARK(X)
ACTIVE(U11(tt, L)) → LENGTH(L)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(length(cons(N, L))) → ISNAT(N)
ACTIVE(length(cons(N, L))) → U111(and(isNatList(L), isNat(N)), L)
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(0) → ACTIVE(0)
ISNATILIST(active(X)) → ISNATILIST(X)
MARK(nil) → ACTIVE(nil)
U311(mark(X1), X2, X3, X4) → U311(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → MARK(X1)
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
U311(X1, X2, active(X3), X4) → U311(X1, X2, X3, X4)
CONS(X1, mark(X2)) → CONS(X1, X2)
U311(X1, X2, X3, active(X4)) → U311(X1, X2, X3, X4)
ACTIVE(length(cons(N, L))) → AND(isNatList(L), isNat(N))
U111(X1, mark(X2)) → U111(X1, X2)
ACTIVE(isNatIList(zeros)) → MARK(tt)
MARK(length(X)) → MARK(X)
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(take(s(M), cons(N, IL))) → ISNAT(N)
MARK(take(X1, X2)) → TAKE(mark(X1), mark(X2))
U111(X1, active(X2)) → U111(X1, X2)
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
TAKE(active(X1), X2) → TAKE(X1, X2)
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(take(s(M), cons(N, IL))) → AND(isNat(M), isNat(N))
ISNATILIST(mark(X)) → ISNATILIST(X)
ACTIVE(and(tt, X)) → MARK(X)
MARK(take(X1, X2)) → MARK(X2)
CONS(mark(X1), X2) → CONS(X1, X2)
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U31(tt, IL, M, N)) → TAKE(M, IL)
MARK(U11(X1, X2)) → U111(mark(X1), X2)
ACTIVE(isNat(0)) → MARK(tt)
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
CONS(X1, active(X2)) → CONS(X1, X2)
ACTIVE(take(s(M), cons(N, IL))) → U311(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N)
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
LENGTH(mark(X)) → LENGTH(X)
U311(X1, X2, X3, mark(X4)) → U311(X1, X2, X3, X4)
LENGTH(active(X)) → LENGTH(X)
ACTIVE(isNatList(take(V1, V2))) → ISNATILIST(V2)
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
U111(active(X1), X2) → U111(X1, X2)
S(mark(X)) → S(X)
MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
ISNAT(mark(X)) → ISNAT(X)
U211(active(X)) → U211(X)
ACTIVE(length(nil)) → MARK(0)
ACTIVE(isNatList(cons(V1, V2))) → ISNATLIST(V2)
ACTIVE(isNat(s(V1))) → ISNAT(V1)
ACTIVE(isNatList(nil)) → MARK(tt)
AND(mark(X1), X2) → AND(X1, X2)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
U311(active(X1), X2, X3, X4) → U311(X1, X2, X3, X4)
MARK(tt) → ACTIVE(tt)
MARK(U21(X)) → ACTIVE(U21(mark(X)))
MARK(isNat(X)) → ACTIVE(isNat(X))
TAKE(X1, active(X2)) → TAKE(X1, X2)
U311(X1, active(X2), X3, X4) → U311(X1, X2, X3, X4)
MARK(cons(X1, X2)) → MARK(X1)
MARK(U21(X)) → U211(mark(X))
MARK(U31(X1, X2, X3, X4)) → U311(mark(X1), X2, X3, X4)
AND(X1, mark(X2)) → AND(X1, X2)
ACTIVE(take(0, IL)) → U211(isNatIList(IL))
ACTIVE(isNatList(take(V1, V2))) → AND(isNat(V1), isNatIList(V2))
ACTIVE(U21(tt)) → MARK(nil)
ACTIVE(isNatIList(V)) → ISNATLIST(V)
ACTIVE(zeros) → CONS(0, zeros)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
ACTIVE(isNatList(take(V1, V2))) → ISNAT(V1)
MARK(take(X1, X2)) → MARK(X1)
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
ACTIVE(isNatIList(cons(V1, V2))) → ISNAT(V1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
S(active(X)) → S(X)
MARK(cons(X1, X2)) → CONS(mark(X1), X2)
ACTIVE(isNatIList(cons(V1, V2))) → ISNATILIST(V2)
U211(mark(X)) → U211(X)
MARK(length(X)) → ACTIVE(length(mark(X)))
ACTIVE(isNatList(cons(V1, V2))) → ISNAT(V1)
AND(X1, active(X2)) → AND(X1, X2)
ACTIVE(isNatIList(cons(V1, V2))) → AND(isNat(V1), isNatIList(V2))
ACTIVE(take(0, IL)) → ISNATILIST(IL)
ACTIVE(U11(tt, L)) → S(length(L))
MARK(zeros) → ACTIVE(zeros)
MARK(length(X)) → LENGTH(mark(X))
U311(X1, mark(X2), X3, X4) → U311(X1, X2, X3, X4)
TAKE(mark(X1), X2) → TAKE(X1, X2)
AND(active(X1), X2) → AND(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
ISNATLIST(active(X)) → ISNATLIST(X)
U111(mark(X1), X2) → U111(X1, X2)
ACTIVE(take(s(M), cons(N, IL))) → AND(isNatIList(IL), and(isNat(M), isNat(N)))
U311(X1, X2, mark(X3), X4) → U311(X1, X2, X3, X4)
ISNATLIST(mark(X)) → ISNATLIST(X)
ACTIVE(isNat(length(V1))) → ISNATLIST(V1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(take(s(M), cons(N, IL))) → ISNATILIST(IL)
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
MARK(s(X)) → S(mark(X))
MARK(and(X1, X2)) → AND(mark(X1), X2)
ACTIVE(take(s(M), cons(N, IL))) → ISNAT(M)
ACTIVE(length(cons(N, L))) → ISNATLIST(L)
ACTIVE(U31(tt, IL, M, N)) → CONS(N, take(M, IL))
ISNAT(active(X)) → ISNAT(X)
ACTIVE(isNatList(cons(V1, V2))) → AND(isNat(V1), isNatList(V2))
MARK(U21(X)) → MARK(X)
ACTIVE(U11(tt, L)) → LENGTH(L)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(length(cons(N, L))) → ISNAT(N)
ACTIVE(length(cons(N, L))) → U111(and(isNatList(L), isNat(N)), L)
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(0) → ACTIVE(0)
ISNATILIST(active(X)) → ISNATILIST(X)
MARK(nil) → ACTIVE(nil)
U311(mark(X1), X2, X3, X4) → U311(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 12 SCCs with 45 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATILIST(mark(X)) → ISNATILIST(X)
ISNATILIST(active(X)) → ISNATILIST(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATILIST(mark(X)) → ISNATILIST(X)
ISNATILIST(active(X)) → ISNATILIST(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATLIST(mark(X)) → ISNATLIST(X)
ISNATLIST(active(X)) → ISNATLIST(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATLIST(mark(X)) → ISNATLIST(X)
ISNATLIST(active(X)) → ISNATLIST(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNAT(active(X)) → ISNAT(X)
ISNAT(mark(X)) → ISNAT(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNAT(active(X)) → ISNAT(X)
ISNAT(mark(X)) → ISNAT(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

AND(mark(X1), X2) → AND(X1, X2)
AND(active(X1), X2) → AND(X1, X2)
AND(X1, mark(X2)) → AND(X1, X2)
AND(X1, active(X2)) → AND(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

AND(mark(X1), X2) → AND(X1, X2)
AND(active(X1), X2) → AND(X1, X2)
AND(X1, mark(X2)) → AND(X1, X2)
AND(X1, active(X2)) → AND(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(X1, active(X2)) → TAKE(X1, X2)
TAKE(active(X1), X2) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(X1, active(X2)) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(active(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U311(active(X1), X2, X3, X4) → U311(X1, X2, X3, X4)
U311(X1, X2, mark(X3), X4) → U311(X1, X2, X3, X4)
U311(X1, mark(X2), X3, X4) → U311(X1, X2, X3, X4)
U311(X1, active(X2), X3, X4) → U311(X1, X2, X3, X4)
U311(X1, X2, active(X3), X4) → U311(X1, X2, X3, X4)
U311(X1, X2, X3, mark(X4)) → U311(X1, X2, X3, X4)
U311(X1, X2, X3, active(X4)) → U311(X1, X2, X3, X4)
U311(mark(X1), X2, X3, X4) → U311(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U311(active(X1), X2, X3, X4) → U311(X1, X2, X3, X4)
U311(X1, mark(X2), X3, X4) → U311(X1, X2, X3, X4)
U311(X1, X2, mark(X3), X4) → U311(X1, X2, X3, X4)
U311(X1, active(X2), X3, X4) → U311(X1, X2, X3, X4)
U311(X1, X2, active(X3), X4) → U311(X1, X2, X3, X4)
U311(X1, X2, X3, mark(X4)) → U311(X1, X2, X3, X4)
U311(X1, X2, X3, active(X4)) → U311(X1, X2, X3, X4)
U311(mark(X1), X2, X3, X4) → U311(X1, X2, X3, X4)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U211(mark(X)) → U211(X)
U211(active(X)) → U211(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U211(mark(X)) → U211(X)
U211(active(X)) → U211(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LENGTH(mark(X)) → LENGTH(X)
LENGTH(active(X)) → LENGTH(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LENGTH(mark(X)) → LENGTH(X)
LENGTH(active(X)) → LENGTH(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(mark(X)) → S(X)
S(active(X)) → S(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(active(X)) → S(X)
S(mark(X)) → S(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U111(X1, mark(X2)) → U111(X1, X2)
U111(X1, active(X2)) → U111(X1, X2)
U111(active(X1), X2) → U111(X1, X2)
U111(mark(X1), X2) → U111(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U111(X1, mark(X2)) → U111(X1, X2)
U111(active(X1), X2) → U111(X1, X2)
U111(X1, active(X2)) → U111(X1, X2)
U111(mark(X1), X2) → U111(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(X1, active(X2)) → CONS(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
CONS(X1, mark(X2)) → CONS(X1, X2)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(mark(X1), X2) → CONS(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)
CONS(X1, mark(X2)) → CONS(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(take(X1, X2)) → MARK(X2)
MARK(U21(X)) → ACTIVE(U21(mark(X)))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → MARK(X)
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(take(X1, X2)) → MARK(X1)
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U21(X)) → MARK(X)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U21(X)) → ACTIVE(U21(mark(X)))
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
The remaining pairs can at least be oriented weakly.

MARK(take(X1, X2)) → MARK(X2)
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → MARK(X)
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(take(X1, X2)) → MARK(X1)
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U21(X)) → MARK(X)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = 1   
POL(U11(x1, x2)) = 1   
POL(U21(x1)) = 0   
POL(U31(x1, x2, x3, x4)) = 1   
POL(active(x1)) = 0   
POL(and(x1, x2)) = 1   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 1   
POL(isNatIList(x1)) = 1   
POL(isNatList(x1)) = 1   
POL(length(x1)) = 1   
POL(mark(x1)) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1   
POL(tt) = 0   
POL(zeros) = 1   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(take(X1, X2)) → MARK(X2)
MARK(U11(X1, X2)) → MARK(X1)
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
MARK(length(X)) → MARK(X)
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(take(X1, X2)) → MARK(X1)
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U21(X)) → MARK(X)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U11(X1, X2)) → MARK(X1)
MARK(length(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.

MARK(take(X1, X2)) → MARK(X2)
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(take(X1, X2)) → MARK(X1)
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U21(X)) → MARK(X)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = 1 + x1 + x2   
POL(U21(x1)) = x1   
POL(U31(x1, x2, x3, x4)) = x1 + x2 + x3 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 1 + x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(take(X1, X2)) → MARK(X2)
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(take(X1, X2)) → MARK(X1)
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U21(X)) → MARK(X)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(take(X1, X2)) → MARK(X2)
ACTIVE(take(0, IL)) → MARK(U21(isNatIList(IL)))
MARK(take(X1, X2)) → MARK(X1)
ACTIVE(take(s(M), cons(N, IL))) → MARK(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
The remaining pairs can at least be oriented weakly.

MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U21(X)) → MARK(X)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U21(x1)) = x1   
POL(U31(x1, x2, x3, x4)) = x1 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U21(X)) → MARK(X)
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U21(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.

MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
MARK(cons(X1, X2)) → MARK(X1)
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(and(tt, X)) → MARK(X)
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U21(x1)) = 1 + x1   
POL(U31(x1, x2, x3, x4)) = x1 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
QDP
                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
MARK(zeros) → ACTIVE(zeros)
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
MARK(zeros) → ACTIVE(zeros)
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = 1   
POL(U11(x1, x2)) = 1   
POL(U21(x1)) = 0   
POL(U31(x1, x2, x3, x4)) = 1   
POL(active(x1)) = 0   
POL(and(x1, x2)) = 1   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 1   
POL(isNatIList(x1)) = 1   
POL(isNatList(x1)) = 1   
POL(length(x1)) = 1   
POL(mark(x1)) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   
POL(zeros) = 1   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
QDP
                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U31(X1, X2, X3, X4)) → MARK(X1)
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U31(X1, X2, X3, X4)) → MARK(X1)
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = x2   
POL(U21(x1)) = 1 + x1   
POL(U31(x1, x2, x3, x4)) = 1 + x1 + x2 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
QDP
                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
ACTIVE(isNatIList(V)) → MARK(isNatList(V))
MARK(zeros) → ACTIVE(zeros)
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ACTIVE(isNatIList(V)) → MARK(isNatList(V))
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(zeros) → ACTIVE(zeros)
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = x2   
POL(U21(x1)) = 1   
POL(U31(x1, x2, x3, x4)) = 1 + x2 + x3 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = x1   
POL(isNatIList(x1)) = 1 + x1   
POL(isNatList(x1)) = x1   
POL(length(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 1   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
mark(tt) → active(tt)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
mark(nil) → active(nil)
active(length(nil)) → mark(0)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
active(isNatIList(zeros)) → mark(tt)
length(active(X)) → length(X)
length(mark(X)) → length(X)
active(isNatList(nil)) → mark(tt)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
QDP
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ACTIVE(isNat(length(V1))) → MARK(isNatList(V1))
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = 1 + x2   
POL(U21(x1)) = x1   
POL(U31(x1, x2, x3, x4)) = x2 + x3 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = x1   
POL(isNatIList(x1)) = x1   
POL(isNatList(x1)) = x1   
POL(length(x1)) = 1 + x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
mark(tt) → active(tt)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
mark(nil) → active(nil)
active(length(nil)) → mark(0)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
active(isNatIList(zeros)) → mark(tt)
length(active(X)) → length(X)
length(mark(X)) → length(X)
active(isNatList(nil)) → mark(tt)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
QDP
                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(zeros) → ACTIVE(zeros)
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ACTIVE(U31(tt, IL, M, N)) → MARK(cons(N, take(M, IL)))
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(zeros) → ACTIVE(zeros)
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1, x2, x3, x4)) = 1 + x3 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
mark(tt) → active(tt)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
mark(nil) → active(nil)
active(length(nil)) → mark(0)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
active(isNatIList(zeros)) → mark(tt)
length(active(X)) → length(X)
length(mark(X)) → length(X)
active(isNatList(nil)) → mark(tt)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
QDP
                                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ACTIVE(isNatList(take(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(zeros) → MARK(cons(0, zeros))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = x2   
POL(U21(x1)) = 0   
POL(U31(x1, x2, x3, x4)) = 1 + x2 + x3 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = x1   
POL(isNatIList(x1)) = x1   
POL(isNatList(x1)) = x1   
POL(length(x1)) = x1   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
mark(tt) → active(tt)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
mark(nil) → active(nil)
active(length(nil)) → mark(0)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
active(isNatIList(zeros)) → mark(tt)
length(active(X)) → length(X)
length(mark(X)) → length(X)
active(isNatList(nil)) → mark(tt)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
QDP
                                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
ACTIVE(zeros) → MARK(cons(0, zeros))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ACTIVE(zeros) → MARK(cons(0, zeros))
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U21(x1)) = 1   
POL(U31(x1, x2, x3, x4)) = x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = x1   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 1   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   
POL(zeros) = 1   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
mark(tt) → active(tt)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
mark(nil) → active(nil)
active(length(nil)) → mark(0)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
active(isNatIList(zeros)) → mark(tt)
length(active(X)) → length(X)
length(mark(X)) → length(X)
active(isNatList(nil)) → mark(tt)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
QDP
                                                        ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(zeros) → ACTIVE(zeros)
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
QDP
                                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(cons(X1, X2)) → MARK(X1)
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(cons(X1, X2)) → MARK(X1)
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U21(x1)) = 0   
POL(U31(x1, x2, x3, x4)) = 1 + x4   
POL(active(x1)) = x1   
POL(and(x1, x2)) = x1 + x2   
POL(cons(x1, x2)) = 1 + x1   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(mark(x1)) = x1   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = x1 + x2   
POL(tt) = 0   
POL(zeros) = 1   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
mark(tt) → active(tt)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
mark(nil) → active(nil)
active(length(nil)) → mark(0)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
active(isNatIList(zeros)) → mark(tt)
length(active(X)) → length(X)
length(mark(X)) → length(X)
active(isNatList(nil)) → mark(tt)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
QDP
                                                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U31(X1, X2, X3, X4)) → ACTIVE(U31(mark(X1), X2, X3, X4))
The remaining pairs can at least be oriented weakly.

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = 1   
POL(U11(x1, x2)) = 1   
POL(U21(x1)) = 0   
POL(U31(x1, x2, x3, x4)) = 0   
POL(active(x1)) = 0   
POL(and(x1, x2)) = 1   
POL(cons(x1, x2)) = 0   
POL(isNat(x1)) = 1   
POL(isNatIList(x1)) = 1   
POL(isNatList(x1)) = 1   
POL(length(x1)) = 1   
POL(mark(x1)) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
QDP
                                                                    ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(isNatList(X)) → ACTIVE(isNatList(X))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule MARK(U11(X1, X2)) → ACTIVE(U11(mark(X1), X2)) at position [0] we obtained the following new rules:

MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
QDP
                                                                        ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule MARK(length(X)) → ACTIVE(length(mark(X))) at position [0] we obtained the following new rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(tt)) → ACTIVE(length(active(tt)))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(length(0)) → ACTIVE(length(active(0)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(length(nil)) → ACTIVE(length(active(nil)))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(length(x0)) → ACTIVE(length(x0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
QDP
                                                                            ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(tt)) → ACTIVE(length(active(tt)))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(length(nil)) → ACTIVE(length(active(nil)))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(length(0)) → ACTIVE(length(active(0)))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule MARK(and(X1, X2)) → ACTIVE(and(mark(X1), X2)) at position [0] we obtained the following new rules:

MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
QDP
                                                                                ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(tt)) → ACTIVE(length(active(tt)))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(length(nil)) → ACTIVE(length(active(nil)))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(length(0)) → ACTIVE(length(active(0)))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule MARK(length(tt)) → ACTIVE(length(active(tt))) at position [0] we obtained the following new rules:

MARK(length(tt)) → ACTIVE(length(tt))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
QDP
                                                                                    ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
MARK(length(nil)) → ACTIVE(length(active(nil)))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
MARK(length(0)) → ACTIVE(length(active(0)))
MARK(length(tt)) → ACTIVE(length(tt))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
QDP
                                                                                        ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(length(nil)) → ACTIVE(length(active(nil)))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
MARK(length(0)) → ACTIVE(length(active(0)))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule MARK(length(0)) → ACTIVE(length(active(0))) at position [0] we obtained the following new rules:

MARK(length(0)) → ACTIVE(length(0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
QDP
                                                                                            ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(0)) → ACTIVE(length(0))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
MARK(length(nil)) → ACTIVE(length(active(nil)))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
QDP
                                                                                                ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(length(nil)) → ACTIVE(length(active(nil)))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule MARK(length(nil)) → ACTIVE(length(active(nil))) at position [0] we obtained the following new rules:

MARK(length(nil)) → ACTIVE(length(nil))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
QDP
                                                                                                    ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(nil)) → ACTIVE(length(nil))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
QDP
                                                                                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(U21(x0), y1)) → ACTIVE(and(active(U21(mark(x0))), y1))
MARK(and(take(x0, x1), y1)) → ACTIVE(and(active(take(mark(x0), mark(x1))), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( 0 ) =
/0\
\0/

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\1/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

active(U21(tt)) → mark(nil)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)
isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
QDP
                                                                                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(zeros, y1)) → ACTIVE(and(active(zeros), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/01\
\10/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\11/
·x1+
/11\
\11/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( 0 ) =
/0\
\0/

M( active(x1) ) =
/0\
\0/
+
/01\
\10/
·x1

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/1\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\11/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

active(U21(tt)) → mark(nil)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)
isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
QDP
                                                                                                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(nil, y1)) → ACTIVE(and(active(nil), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\01/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\1/
+
/00\
\01/
·x1+
/00\
\00/
·x2

M( 0 ) =
/0\
\0/

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\1/

M( U21(x1) ) =
/0\
\1/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

active(U21(tt)) → mark(nil)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)
isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
QDP
                                                                                                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U11(U31(x0, x1, x2, x3), y1)) → ACTIVE(U11(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(U21(x0), y1)) → ACTIVE(U11(active(U21(mark(x0))), y1))
MARK(U11(nil, y1)) → ACTIVE(U11(active(nil), y1))
MARK(U11(zeros, y1)) → ACTIVE(U11(active(zeros), y1))
MARK(and(U31(x0, x1, x2, x3), y1)) → ACTIVE(and(active(U31(mark(x0), x1, x2, x3)), y1))
MARK(U11(take(x0, x1), y1)) → ACTIVE(U11(active(take(mark(x0), mark(x1))), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( 0 ) =
/0\
\0/

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\1/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\1/

M( U21(x1) ) =
/0\
\1/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

active(U21(tt)) → mark(nil)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)
isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
QDP
                                                                                                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(cons(x0, x1), y1)) → ACTIVE(and(active(cons(mark(x0), x1)), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\01/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\1/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
QDP
                                                                                                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(y0, active(x1))) → ACTIVE(and(mark(y0), x1))
MARK(and(y0, mark(x1))) → ACTIVE(and(mark(y0), x1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
MARK(and(X1, X2)) → MARK(X1)
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/1\
\0/
+
/11\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\11/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( active(x1) ) =
/1\
\0/
+
/11\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[0,1]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
QDP
                                                                                                                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U11(cons(x0, x1), y1)) → ACTIVE(U11(active(cons(mark(x0), x1)), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\1/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
QDP
                                                                                                                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U11(0, y1)) → ACTIVE(U11(active(0), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2+
/00\
\01/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/01\
\00/
·x1+
/01\
\01/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/10\
\00/
·x1+
/11\
\11/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/10\
\01/
·x1+
/11\
\01/
·x2

M( 0 ) =
/0\
\1/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2

M( active(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/01\
\01/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\1/

M( U21(x1) ) =
/0\
\1/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[1,0]
·x1

M( ACTIVE(x1) ) = 0+
[0,1]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
                                                                                                                                  ↳ QDP
                                                                                                                                    ↳ QDPOrderProof
QDP
                                                                                                                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(0, y1)) → ACTIVE(and(active(0), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/11\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/01\
\10/
·x1+
/11\
\01/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/11\
\00/
·x1+
/00\
\00/
·x2

M( 0 ) =
/1\
\0/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\00/
·x2

M( active(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/11\
\00/
·x1

M( length(x1) ) =
/0\
\0/
+
/10\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/1\
\0/

M( U21(x1) ) =
/1\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[1,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
                                                                                                                                  ↳ QDP
                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                      ↳ QDP
                                                                                                                                        ↳ QDPOrderProof
QDP
                                                                                                                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(length(x0), y1)) → ACTIVE(and(active(length(mark(x0))), y1))
MARK(and(U11(x0, x1), y1)) → ACTIVE(and(active(U11(mark(x0), x1)), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\01/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/1\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\00/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/1\
\1/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
                                                                                                                                  ↳ QDP
                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                      ↳ QDP
                                                                                                                                        ↳ QDPOrderProof
                                                                                                                                          ↳ QDP
                                                                                                                                            ↳ QDPOrderProof
QDP
                                                                                                                                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U11(length(x0), y1)) → ACTIVE(U11(active(length(mark(x0))), y1))
MARK(U11(U11(x0, x1), y1)) → ACTIVE(U11(active(U11(mark(x0), x1)), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/1\
\1/
+
/00\
\01/
·x1+
/00\
\00/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\01/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/1\
\1/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
                                                                                                                                  ↳ QDP
                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                      ↳ QDP
                                                                                                                                        ↳ QDPOrderProof
                                                                                                                                          ↳ QDP
                                                                                                                                            ↳ QDPOrderProof
                                                                                                                                              ↳ QDP
                                                                                                                                                ↳ QDPOrderProof
QDP
                                                                                                                                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(isNatIList(x0), y1)) → ACTIVE(and(active(isNatIList(x0)), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\01/
·x2+
/00\
\01/
·x3+
/01\
\01/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/01\
\01/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\1/
+
/00\
\01/
·x1+
/00\
\01/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\01/
·x2

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/01\
\01/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/1\
\1/
+
/01\
\01/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/01\
\01/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/01\
\01/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
                                                                                                                                  ↳ QDP
                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                      ↳ QDP
                                                                                                                                        ↳ QDPOrderProof
                                                                                                                                          ↳ QDP
                                                                                                                                            ↳ QDPOrderProof
                                                                                                                                              ↳ QDP
                                                                                                                                                ↳ QDPOrderProof
                                                                                                                                                  ↳ QDP
                                                                                                                                                    ↳ QDPOrderProof
QDP
                                                                                                                                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(and(isNatList(x0), y1)) → ACTIVE(and(active(isNatList(x0)), y1))
The remaining pairs can at least be oriented weakly.

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2+
/00\
\01/
·x3+
/00\
\01/
·x4

M( mark(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( U11(x1, x2) ) =
/1\
\1/
+
/00\
\00/
·x1+
/01\
\01/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\01/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\01/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\01/
·x2

M( active(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/1\
\1/
+
/01\
\01/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/1\
\1/
+
/01\
\01/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/1\
\1/
+
/01\
\01/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/01\
\01/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
                                                                                                                                  ↳ QDP
                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                      ↳ QDP
                                                                                                                                        ↳ QDPOrderProof
                                                                                                                                          ↳ QDP
                                                                                                                                            ↳ QDPOrderProof
                                                                                                                                              ↳ QDP
                                                                                                                                                ↳ QDPOrderProof
                                                                                                                                                  ↳ QDP
                                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                                      ↳ QDP
                                                                                                                                                        ↳ QDPOrderProof
QDP
                                                                                                                                                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(U11(y0, mark(x1))) → ACTIVE(U11(mark(y0), x1))
MARK(U11(y0, active(x1))) → ACTIVE(U11(mark(y0), x1))
The remaining pairs can at least be oriented weakly.

MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(s(X)) → MARK(X)
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U31(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( mark(x1) ) =
/1\
\0/
+
/11\
\01/
·x1

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/01\
\11/
·x2

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/01\
\11/
·x2

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( 0 ) =
/0\
\0/

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( active(x1) ) =
/1\
\0/
+
/11\
\01/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( length(x1) ) =
/0\
\0/
+
/01\
\01/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( nil ) =
/0\
\0/

M( U21(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( MARK(x1) ) = 0+
[0,1]
·x1

M( ACTIVE(x1) ) = 0+
[1,0]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

isNatList(active(X)) → isNatList(X)
isNatList(mark(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)
active(U21(tt)) → mark(nil)
isNat(active(X)) → isNat(X)
isNat(mark(X)) → isNat(X)
and(X1, mark(X2)) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
active(length(nil)) → mark(0)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
mark(zeros) → active(zeros)
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
active(zeros) → mark(cons(0, zeros))
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNatList(X)) → active(isNatList(X))
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
active(U11(tt, L)) → mark(s(length(L)))
mark(isNat(X)) → active(isNat(X))
mark(isNatIList(X)) → active(isNatIList(X))
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
active(isNatIList(V)) → mark(isNatList(V))
active(isNat(length(V1))) → mark(isNatList(V1))
active(and(tt, X)) → mark(X)
mark(length(X)) → active(length(mark(X)))
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(U21(X)) → active(U21(mark(X)))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(isNat(s(V1))) → mark(isNat(V1))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
active(isNat(0)) → mark(tt)
active(isNatIList(zeros)) → mark(tt)
active(isNatList(nil)) → mark(tt)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
mark(tt) → active(tt)
mark(nil) → active(nil)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U21(active(X)) → U21(X)
U21(mark(X)) → U21(X)
U11(mark(X1), X2) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
length(active(X)) → length(X)
length(mark(X)) → length(X)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ DependencyGraphProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ Narrowing
                                                                      ↳ QDP
                                                                        ↳ Narrowing
                                                                          ↳ QDP
                                                                            ↳ Narrowing
                                                                              ↳ QDP
                                                                                ↳ Narrowing
                                                                                  ↳ QDP
                                                                                    ↳ DependencyGraphProof
                                                                                      ↳ QDP
                                                                                        ↳ Narrowing
                                                                                          ↳ QDP
                                                                                            ↳ DependencyGraphProof
                                                                                              ↳ QDP
                                                                                                ↳ Narrowing
                                                                                                  ↳ QDP
                                                                                                    ↳ DependencyGraphProof
                                                                                                      ↳ QDP
                                                                                                        ↳ QDPOrderProof
                                                                                                          ↳ QDP
                                                                                                            ↳ QDPOrderProof
                                                                                                              ↳ QDP
                                                                                                                ↳ QDPOrderProof
                                                                                                                  ↳ QDP
                                                                                                                    ↳ QDPOrderProof
                                                                                                                      ↳ QDP
                                                                                                                        ↳ QDPOrderProof
                                                                                                                          ↳ QDP
                                                                                                                            ↳ QDPOrderProof
                                                                                                                              ↳ QDP
                                                                                                                                ↳ QDPOrderProof
                                                                                                                                  ↳ QDP
                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                      ↳ QDP
                                                                                                                                        ↳ QDPOrderProof
                                                                                                                                          ↳ QDP
                                                                                                                                            ↳ QDPOrderProof
                                                                                                                                              ↳ QDP
                                                                                                                                                ↳ QDPOrderProof
                                                                                                                                                  ↳ QDP
                                                                                                                                                    ↳ QDPOrderProof
                                                                                                                                                      ↳ QDP
                                                                                                                                                        ↳ QDPOrderProof
                                                                                                                                                          ↳ QDP
                                                                                                                                                            ↳ QDPOrderProof
QDP

Q DP problem:
The TRS P consists of the following rules:

MARK(length(take(x0, x1))) → ACTIVE(length(active(take(mark(x0), mark(x1)))))
MARK(length(isNatIList(x0))) → ACTIVE(length(active(isNatIList(x0))))
MARK(U11(isNatList(x0), y1)) → ACTIVE(U11(active(isNatList(x0)), y1))
MARK(U11(isNat(x0), y1)) → ACTIVE(U11(active(isNat(x0)), y1))
MARK(length(cons(x0, x1))) → ACTIVE(length(active(cons(mark(x0), x1))))
MARK(isNat(X)) → ACTIVE(isNat(X))
MARK(s(X)) → MARK(X)
MARK(isNatIList(X)) → ACTIVE(isNatIList(X))
ACTIVE(U11(tt, L)) → MARK(s(length(L)))
MARK(and(and(x0, x1), y1)) → ACTIVE(and(active(and(mark(x0), x1)), y1))
MARK(and(tt, y1)) → ACTIVE(and(active(tt), y1))
MARK(length(and(x0, x1))) → ACTIVE(length(active(and(mark(x0), x1))))
ACTIVE(isNatList(cons(V1, V2))) → MARK(and(isNat(V1), isNatList(V2)))
MARK(and(X1, X2)) → MARK(X1)
MARK(length(isNat(x0))) → ACTIVE(length(active(isNat(x0))))
MARK(and(s(x0), y1)) → ACTIVE(and(active(s(mark(x0))), y1))
ACTIVE(isNat(s(V1))) → MARK(isNat(V1))
MARK(U11(isNatIList(x0), y1)) → ACTIVE(U11(active(isNatIList(x0)), y1))
MARK(length(length(x0))) → ACTIVE(length(active(length(mark(x0)))))
MARK(isNatList(X)) → ACTIVE(isNatList(X))
ACTIVE(length(cons(N, L))) → MARK(U11(and(isNatList(L), isNat(N)), L))
MARK(and(isNat(x0), y1)) → ACTIVE(and(active(isNat(x0)), y1))
MARK(U11(s(x0), y1)) → ACTIVE(U11(active(s(mark(x0))), y1))
ACTIVE(isNatIList(cons(V1, V2))) → MARK(and(isNat(V1), isNatIList(V2)))
MARK(length(U21(x0))) → ACTIVE(length(active(U21(mark(x0)))))
MARK(length(isNatList(x0))) → ACTIVE(length(active(isNatList(x0))))
MARK(U11(and(x0, x1), y1)) → ACTIVE(U11(active(and(mark(x0), x1)), y1))
MARK(and(x0, x1)) → ACTIVE(and(x0, x1))
MARK(length(U31(x0, x1, x2, x3))) → ACTIVE(length(active(U31(mark(x0), x1, x2, x3))))
MARK(length(zeros)) → ACTIVE(length(active(zeros)))
MARK(U11(tt, y1)) → ACTIVE(U11(active(tt), y1))
MARK(length(s(x0))) → ACTIVE(length(active(s(mark(x0)))))
MARK(length(U11(x0, x1))) → ACTIVE(length(active(U11(mark(x0), x1))))
ACTIVE(and(tt, X)) → MARK(X)
MARK(U11(x0, x1)) → ACTIVE(U11(x0, x1))
MARK(length(x0)) → ACTIVE(length(x0))

The TRS R consists of the following rules:

active(zeros) → mark(cons(0, zeros))
active(U11(tt, L)) → mark(s(length(L)))
active(U21(tt)) → mark(nil)
active(U31(tt, IL, M, N)) → mark(cons(N, take(M, IL)))
active(and(tt, X)) → mark(X)
active(isNat(0)) → mark(tt)
active(isNat(length(V1))) → mark(isNatList(V1))
active(isNat(s(V1))) → mark(isNat(V1))
active(isNatIList(V)) → mark(isNatList(V))
active(isNatIList(zeros)) → mark(tt)
active(isNatIList(cons(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(isNatList(nil)) → mark(tt)
active(isNatList(cons(V1, V2))) → mark(and(isNat(V1), isNatList(V2)))
active(isNatList(take(V1, V2))) → mark(and(isNat(V1), isNatIList(V2)))
active(length(nil)) → mark(0)
active(length(cons(N, L))) → mark(U11(and(isNatList(L), isNat(N)), L))
active(take(0, IL)) → mark(U21(isNatIList(IL)))
active(take(s(M), cons(N, IL))) → mark(U31(and(isNatIList(IL), and(isNat(M), isNat(N))), IL, M, N))
mark(zeros) → active(zeros)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(0) → active(0)
mark(U11(X1, X2)) → active(U11(mark(X1), X2))
mark(tt) → active(tt)
mark(s(X)) → active(s(mark(X)))
mark(length(X)) → active(length(mark(X)))
mark(U21(X)) → active(U21(mark(X)))
mark(nil) → active(nil)
mark(U31(X1, X2, X3, X4)) → active(U31(mark(X1), X2, X3, X4))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(and(X1, X2)) → active(and(mark(X1), X2))
mark(isNat(X)) → active(isNat(X))
mark(isNatList(X)) → active(isNatList(X))
mark(isNatIList(X)) → active(isNatIList(X))
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
U11(mark(X1), X2) → U11(X1, X2)
U11(X1, mark(X2)) → U11(X1, X2)
U11(active(X1), X2) → U11(X1, X2)
U11(X1, active(X2)) → U11(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
length(mark(X)) → length(X)
length(active(X)) → length(X)
U21(mark(X)) → U21(X)
U21(active(X)) → U21(X)
U31(mark(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, mark(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, mark(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, mark(X4)) → U31(X1, X2, X3, X4)
U31(active(X1), X2, X3, X4) → U31(X1, X2, X3, X4)
U31(X1, active(X2), X3, X4) → U31(X1, X2, X3, X4)
U31(X1, X2, active(X3), X4) → U31(X1, X2, X3, X4)
U31(X1, X2, X3, active(X4)) → U31(X1, X2, X3, X4)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
and(mark(X1), X2) → and(X1, X2)
and(X1, mark(X2)) → and(X1, X2)
and(active(X1), X2) → and(X1, X2)
and(X1, active(X2)) → and(X1, X2)
isNat(mark(X)) → isNat(X)
isNat(active(X)) → isNat(X)
isNatList(mark(X)) → isNatList(X)
isNatList(active(X)) → isNatList(X)
isNatIList(mark(X)) → isNatIList(X)
isNatIList(active(X)) → isNatIList(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.