(0) Obligation:

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

zeroscons(0, n__zeros)
U11(tt) → tt
U21(tt) → tt
U31(tt) → tt
U41(tt, V2) → U42(isNatIList(activate(V2)))
U42(tt) → tt
U51(tt, V2) → U52(isNatList(activate(V2)))
U52(tt) → tt
U61(tt, V2) → U62(isNatIList(activate(V2)))
U62(tt) → tt
U71(tt, L, N) → U72(isNat(activate(N)), activate(L))
U72(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → U92(isNat(activate(M)), activate(IL), activate(M), activate(N))
U92(tt, IL, M, N) → U93(isNat(activate(N)), activate(IL), activate(M), activate(N))
U93(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatList(activate(V1)))
isNat(n__s(V1)) → U21(isNat(activate(V1)))
isNatIList(V) → U31(isNatList(activate(V)))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(isNat(activate(V1)), activate(V2))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(isNat(activate(V1)), activate(V2))
isNatList(n__take(V1, V2)) → U61(isNat(activate(V1)), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(isNatList(activate(L)), activate(L), N)
take(0, IL) → U81(isNatIList(IL))
take(s(M), cons(N, IL)) → U91(isNatIList(activate(IL)), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
niln__nil
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(activate(X1), activate(X2))
activate(n__0) → 0
activate(n__length(X)) → length(activate(X))
activate(n__s(X)) → s(activate(X))
activate(n__cons(X1, X2)) → cons(activate(X1), X2)
activate(n__nil) → nil
activate(X) → X

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

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

ZEROSCONS(0, n__zeros)
ZEROS01
U411(tt, V2) → U421(isNatIList(activate(V2)))
U411(tt, V2) → ISNATILIST(activate(V2))
U411(tt, V2) → ACTIVATE(V2)
U511(tt, V2) → U521(isNatList(activate(V2)))
U511(tt, V2) → ISNATLIST(activate(V2))
U511(tt, V2) → ACTIVATE(V2)
U611(tt, V2) → U621(isNatIList(activate(V2)))
U611(tt, V2) → ISNATILIST(activate(V2))
U611(tt, V2) → ACTIVATE(V2)
U711(tt, L, N) → U721(isNat(activate(N)), activate(L))
U711(tt, L, N) → ISNAT(activate(N))
U711(tt, L, N) → ACTIVATE(N)
U711(tt, L, N) → ACTIVATE(L)
U721(tt, L) → S(length(activate(L)))
U721(tt, L) → LENGTH(activate(L))
U721(tt, L) → ACTIVATE(L)
U811(tt) → NIL
U911(tt, IL, M, N) → U921(isNat(activate(M)), activate(IL), activate(M), activate(N))
U911(tt, IL, M, N) → ISNAT(activate(M))
U911(tt, IL, M, N) → ACTIVATE(M)
U911(tt, IL, M, N) → ACTIVATE(IL)
U911(tt, IL, M, N) → ACTIVATE(N)
U921(tt, IL, M, N) → U931(isNat(activate(N)), activate(IL), activate(M), activate(N))
U921(tt, IL, M, N) → ISNAT(activate(N))
U921(tt, IL, M, N) → ACTIVATE(N)
U921(tt, IL, M, N) → ACTIVATE(IL)
U921(tt, IL, M, N) → ACTIVATE(M)
U931(tt, IL, M, N) → CONS(activate(N), n__take(activate(M), activate(IL)))
U931(tt, IL, M, N) → ACTIVATE(N)
U931(tt, IL, M, N) → ACTIVATE(M)
U931(tt, IL, M, N) → ACTIVATE(IL)
ISNAT(n__length(V1)) → U111(isNatList(activate(V1)))
ISNAT(n__length(V1)) → ISNATLIST(activate(V1))
ISNAT(n__length(V1)) → ACTIVATE(V1)
ISNAT(n__s(V1)) → U211(isNat(activate(V1)))
ISNAT(n__s(V1)) → ISNAT(activate(V1))
ISNAT(n__s(V1)) → ACTIVATE(V1)
ISNATILIST(V) → U311(isNatList(activate(V)))
ISNATILIST(V) → ISNATLIST(activate(V))
ISNATILIST(V) → ACTIVATE(V)
ISNATILIST(n__cons(V1, V2)) → U411(isNat(activate(V1)), activate(V2))
ISNATILIST(n__cons(V1, V2)) → ISNAT(activate(V1))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → U511(isNat(activate(V1)), activate(V2))
ISNATLIST(n__cons(V1, V2)) → ISNAT(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATLIST(n__take(V1, V2)) → U611(isNat(activate(V1)), activate(V2))
ISNATLIST(n__take(V1, V2)) → ISNAT(activate(V1))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
LENGTH(nil) → 01
LENGTH(cons(N, L)) → U711(isNatList(activate(L)), activate(L), N)
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
LENGTH(cons(N, L)) → ACTIVATE(L)
TAKE(0, IL) → U811(isNatIList(IL))
TAKE(0, IL) → ISNATILIST(IL)
TAKE(s(M), cons(N, IL)) → U911(isNatIList(activate(IL)), activate(IL), M, N)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
ACTIVATE(n__zeros) → ZEROS
ACTIVATE(n__take(X1, X2)) → TAKE(activate(X1), activate(X2))
ACTIVATE(n__take(X1, X2)) → ACTIVATE(X1)
ACTIVATE(n__take(X1, X2)) → ACTIVATE(X2)
ACTIVATE(n__0) → 01
ACTIVATE(n__length(X)) → LENGTH(activate(X))
ACTIVATE(n__length(X)) → ACTIVATE(X)
ACTIVATE(n__s(X)) → S(activate(X))
ACTIVATE(n__s(X)) → ACTIVATE(X)
ACTIVATE(n__cons(X1, X2)) → CONS(activate(X1), X2)
ACTIVATE(n__cons(X1, X2)) → ACTIVATE(X1)
ACTIVATE(n__nil) → NIL

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt) → tt
U21(tt) → tt
U31(tt) → tt
U41(tt, V2) → U42(isNatIList(activate(V2)))
U42(tt) → tt
U51(tt, V2) → U52(isNatList(activate(V2)))
U52(tt) → tt
U61(tt, V2) → U62(isNatIList(activate(V2)))
U62(tt) → tt
U71(tt, L, N) → U72(isNat(activate(N)), activate(L))
U72(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → U92(isNat(activate(M)), activate(IL), activate(M), activate(N))
U92(tt, IL, M, N) → U93(isNat(activate(N)), activate(IL), activate(M), activate(N))
U93(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatList(activate(V1)))
isNat(n__s(V1)) → U21(isNat(activate(V1)))
isNatIList(V) → U31(isNatList(activate(V)))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(isNat(activate(V1)), activate(V2))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(isNat(activate(V1)), activate(V2))
isNatList(n__take(V1, V2)) → U61(isNat(activate(V1)), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(isNatList(activate(L)), activate(L), N)
take(0, IL) → U81(isNatIList(IL))
take(s(M), cons(N, IL)) → U91(isNatIList(activate(IL)), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
niln__nil
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(activate(X1), activate(X2))
activate(n__0) → 0
activate(n__length(X)) → length(activate(X))
activate(n__s(X)) → s(activate(X))
activate(n__cons(X1, X2)) → cons(activate(X1), X2)
activate(n__nil) → nil
activate(X) → X

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

(3) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 18 less nodes.

(4) Obligation:

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

ACTIVATE(n__take(X1, X2)) → TAKE(activate(X1), activate(X2))
TAKE(0, IL) → ISNATILIST(IL)
ISNATILIST(V) → ISNATLIST(activate(V))
ISNATLIST(n__cons(V1, V2)) → U511(isNat(activate(V1)), activate(V2))
U511(tt, V2) → ISNATLIST(activate(V2))
ISNATLIST(n__cons(V1, V2)) → ISNAT(activate(V1))
ISNAT(n__length(V1)) → ISNATLIST(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
ACTIVATE(n__take(X1, X2)) → ACTIVATE(X1)
ACTIVATE(n__take(X1, X2)) → ACTIVATE(X2)
ACTIVATE(n__length(X)) → LENGTH(activate(X))
LENGTH(cons(N, L)) → U711(isNatList(activate(L)), activate(L), N)
U711(tt, L, N) → U721(isNat(activate(N)), activate(L))
U721(tt, L) → LENGTH(activate(L))
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
ACTIVATE(n__length(X)) → ACTIVATE(X)
ACTIVATE(n__s(X)) → ACTIVATE(X)
ACTIVATE(n__cons(X1, X2)) → ACTIVATE(X1)
ISNATLIST(n__take(V1, V2)) → U611(isNat(activate(V1)), activate(V2))
U611(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(V) → ACTIVATE(V)
ISNATILIST(n__cons(V1, V2)) → U411(isNat(activate(V1)), activate(V2))
U411(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → ISNAT(activate(V1))
ISNAT(n__length(V1)) → ACTIVATE(V1)
ISNAT(n__s(V1)) → ISNAT(activate(V1))
ISNAT(n__s(V1)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
U411(tt, V2) → ACTIVATE(V2)
U611(tt, V2) → ACTIVATE(V2)
ISNATLIST(n__take(V1, V2)) → ISNAT(activate(V1))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
LENGTH(cons(N, L)) → ACTIVATE(L)
U721(tt, L) → ACTIVATE(L)
U711(tt, L, N) → ISNAT(activate(N))
U711(tt, L, N) → ACTIVATE(N)
U711(tt, L, N) → ACTIVATE(L)
U511(tt, V2) → ACTIVATE(V2)
TAKE(s(M), cons(N, IL)) → U911(isNatIList(activate(IL)), activate(IL), M, N)
U911(tt, IL, M, N) → U921(isNat(activate(M)), activate(IL), activate(M), activate(N))
U921(tt, IL, M, N) → U931(isNat(activate(N)), activate(IL), activate(M), activate(N))
U931(tt, IL, M, N) → ACTIVATE(N)
U931(tt, IL, M, N) → ACTIVATE(M)
U931(tt, IL, M, N) → ACTIVATE(IL)
U921(tt, IL, M, N) → ISNAT(activate(N))
U921(tt, IL, M, N) → ACTIVATE(N)
U921(tt, IL, M, N) → ACTIVATE(IL)
U921(tt, IL, M, N) → ACTIVATE(M)
U911(tt, IL, M, N) → ISNAT(activate(M))
U911(tt, IL, M, N) → ACTIVATE(M)
U911(tt, IL, M, N) → ACTIVATE(IL)
U911(tt, IL, M, N) → ACTIVATE(N)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt) → tt
U21(tt) → tt
U31(tt) → tt
U41(tt, V2) → U42(isNatIList(activate(V2)))
U42(tt) → tt
U51(tt, V2) → U52(isNatList(activate(V2)))
U52(tt) → tt
U61(tt, V2) → U62(isNatIList(activate(V2)))
U62(tt) → tt
U71(tt, L, N) → U72(isNat(activate(N)), activate(L))
U72(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → U92(isNat(activate(M)), activate(IL), activate(M), activate(N))
U92(tt, IL, M, N) → U93(isNat(activate(N)), activate(IL), activate(M), activate(N))
U93(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatList(activate(V1)))
isNat(n__s(V1)) → U21(isNat(activate(V1)))
isNatIList(V) → U31(isNatList(activate(V)))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(isNat(activate(V1)), activate(V2))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(isNat(activate(V1)), activate(V2))
isNatList(n__take(V1, V2)) → U61(isNat(activate(V1)), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(isNatList(activate(L)), activate(L), N)
take(0, IL) → U81(isNatIList(IL))
take(s(M), cons(N, IL)) → U91(isNatIList(activate(IL)), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
niln__nil
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(activate(X1), activate(X2))
activate(n__0) → 0
activate(n__length(X)) → length(activate(X))
activate(n__s(X)) → s(activate(X))
activate(n__cons(X1, X2)) → cons(activate(X1), X2)
activate(n__nil) → nil
activate(X) → X

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