0 QTRS
↳1 DependencyPairsProof (⇔)
↳2 QDP
↳3 DependencyGraphProof (⇔)
↳4 AND
↳5 QDP
↳6 QDPOrderProof (⇔)
↳7 QDP
↳8 DependencyGraphProof (⇔)
↳9 TRUE
↳10 QDP
a__zeros → cons(0, zeros)
a__U11(tt) → tt
a__U21(tt) → tt
a__U31(tt) → tt
a__U41(tt, V2) → a__U42(a__isNatIList(V2))
a__U42(tt) → tt
a__U51(tt, V2) → a__U52(a__isNatList(V2))
a__U52(tt) → tt
a__U61(tt, V2) → a__U62(a__isNatIList(V2))
a__U62(tt) → tt
a__U71(tt, L, N) → a__U72(a__isNat(N), L)
a__U72(tt, L) → s(a__length(mark(L)))
a__U81(tt) → nil
a__U91(tt, IL, M, N) → a__U92(a__isNat(M), IL, M, N)
a__U92(tt, IL, M, N) → a__U93(a__isNat(N), IL, M, N)
a__U93(tt, IL, M, N) → cons(mark(N), take(M, IL))
a__isNat(0) → tt
a__isNat(length(V1)) → a__U11(a__isNatList(V1))
a__isNat(s(V1)) → a__U21(a__isNat(V1))
a__isNatIList(V) → a__U31(a__isNatList(V))
a__isNatIList(zeros) → tt
a__isNatIList(cons(V1, V2)) → a__U41(a__isNat(V1), V2)
a__isNatList(nil) → tt
a__isNatList(cons(V1, V2)) → a__U51(a__isNat(V1), V2)
a__isNatList(take(V1, V2)) → a__U61(a__isNat(V1), V2)
a__length(nil) → 0
a__length(cons(N, L)) → a__U71(a__isNatList(L), L, N)
a__take(0, IL) → a__U81(a__isNatIList(IL))
a__take(s(M), cons(N, IL)) → a__U91(a__isNatIList(IL), IL, M, N)
mark(zeros) → a__zeros
mark(U11(X)) → a__U11(mark(X))
mark(U21(X)) → a__U21(mark(X))
mark(U31(X)) → a__U31(mark(X))
mark(U41(X1, X2)) → a__U41(mark(X1), X2)
mark(U42(X)) → a__U42(mark(X))
mark(isNatIList(X)) → a__isNatIList(X)
mark(U51(X1, X2)) → a__U51(mark(X1), X2)
mark(U52(X)) → a__U52(mark(X))
mark(isNatList(X)) → a__isNatList(X)
mark(U61(X1, X2)) → a__U61(mark(X1), X2)
mark(U62(X)) → a__U62(mark(X))
mark(U71(X1, X2, X3)) → a__U71(mark(X1), X2, X3)
mark(U72(X1, X2)) → a__U72(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(length(X)) → a__length(mark(X))
mark(U81(X)) → a__U81(mark(X))
mark(U91(X1, X2, X3, X4)) → a__U91(mark(X1), X2, X3, X4)
mark(U92(X1, X2, X3, X4)) → a__U92(mark(X1), X2, X3, X4)
mark(U93(X1, X2, X3, X4)) → a__U93(mark(X1), X2, X3, X4)
mark(take(X1, X2)) → a__take(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeros → zeros
a__U11(X) → U11(X)
a__U21(X) → U21(X)
a__U31(X) → U31(X)
a__U41(X1, X2) → U41(X1, X2)
a__U42(X) → U42(X)
a__isNatIList(X) → isNatIList(X)
a__U51(X1, X2) → U51(X1, X2)
a__U52(X) → U52(X)
a__isNatList(X) → isNatList(X)
a__U61(X1, X2) → U61(X1, X2)
a__U62(X) → U62(X)
a__U71(X1, X2, X3) → U71(X1, X2, X3)
a__U72(X1, X2) → U72(X1, X2)
a__isNat(X) → isNat(X)
a__length(X) → length(X)
a__U81(X) → U81(X)
a__U91(X1, X2, X3, X4) → U91(X1, X2, X3, X4)
a__U92(X1, X2, X3, X4) → U92(X1, X2, X3, X4)
a__U93(X1, X2, X3, X4) → U93(X1, X2, X3, X4)
a__take(X1, X2) → take(X1, X2)
A__U41(tt, V2) → A__U42(a__isNatIList(V2))
A__U41(tt, V2) → A__ISNATILIST(V2)
A__U51(tt, V2) → A__U52(a__isNatList(V2))
A__U51(tt, V2) → A__ISNATLIST(V2)
A__U61(tt, V2) → A__U62(a__isNatIList(V2))
A__U61(tt, V2) → A__ISNATILIST(V2)
A__U71(tt, L, N) → A__U72(a__isNat(N), L)
A__U71(tt, L, N) → A__ISNAT(N)
A__U72(tt, L) → A__LENGTH(mark(L))
A__U72(tt, L) → MARK(L)
A__U91(tt, IL, M, N) → A__U92(a__isNat(M), IL, M, N)
A__U91(tt, IL, M, N) → A__ISNAT(M)
A__U92(tt, IL, M, N) → A__U93(a__isNat(N), IL, M, N)
A__U92(tt, IL, M, N) → A__ISNAT(N)
A__U93(tt, IL, M, N) → MARK(N)
A__ISNAT(length(V1)) → A__U11(a__isNatList(V1))
A__ISNAT(length(V1)) → A__ISNATLIST(V1)
A__ISNAT(s(V1)) → A__U21(a__isNat(V1))
A__ISNAT(s(V1)) → A__ISNAT(V1)
A__ISNATILIST(V) → A__U31(a__isNatList(V))
A__ISNATILIST(V) → A__ISNATLIST(V)
A__ISNATILIST(cons(V1, V2)) → A__U41(a__isNat(V1), V2)
A__ISNATILIST(cons(V1, V2)) → A__ISNAT(V1)
A__ISNATLIST(cons(V1, V2)) → A__U51(a__isNat(V1), V2)
A__ISNATLIST(cons(V1, V2)) → A__ISNAT(V1)
A__ISNATLIST(take(V1, V2)) → A__U61(a__isNat(V1), V2)
A__ISNATLIST(take(V1, V2)) → A__ISNAT(V1)
A__LENGTH(cons(N, L)) → A__U71(a__isNatList(L), L, N)
A__LENGTH(cons(N, L)) → A__ISNATLIST(L)
A__TAKE(0, IL) → A__U81(a__isNatIList(IL))
A__TAKE(0, IL) → A__ISNATILIST(IL)
A__TAKE(s(M), cons(N, IL)) → A__U91(a__isNatIList(IL), IL, M, N)
A__TAKE(s(M), cons(N, IL)) → A__ISNATILIST(IL)
MARK(zeros) → A__ZEROS
MARK(U11(X)) → A__U11(mark(X))
MARK(U11(X)) → MARK(X)
MARK(U21(X)) → A__U21(mark(X))
MARK(U21(X)) → MARK(X)
MARK(U31(X)) → A__U31(mark(X))
MARK(U31(X)) → MARK(X)
MARK(U41(X1, X2)) → A__U41(mark(X1), X2)
MARK(U41(X1, X2)) → MARK(X1)
MARK(U42(X)) → A__U42(mark(X))
MARK(U42(X)) → MARK(X)
MARK(isNatIList(X)) → A__ISNATILIST(X)
MARK(U51(X1, X2)) → A__U51(mark(X1), X2)
MARK(U51(X1, X2)) → MARK(X1)
MARK(U52(X)) → A__U52(mark(X))
MARK(U52(X)) → MARK(X)
MARK(isNatList(X)) → A__ISNATLIST(X)
MARK(U61(X1, X2)) → A__U61(mark(X1), X2)
MARK(U61(X1, X2)) → MARK(X1)
MARK(U62(X)) → A__U62(mark(X))
MARK(U62(X)) → MARK(X)
MARK(U71(X1, X2, X3)) → A__U71(mark(X1), X2, X3)
MARK(U71(X1, X2, X3)) → MARK(X1)
MARK(U72(X1, X2)) → A__U72(mark(X1), X2)
MARK(U72(X1, X2)) → MARK(X1)
MARK(isNat(X)) → A__ISNAT(X)
MARK(length(X)) → A__LENGTH(mark(X))
MARK(length(X)) → MARK(X)
MARK(U81(X)) → A__U81(mark(X))
MARK(U81(X)) → MARK(X)
MARK(U91(X1, X2, X3, X4)) → A__U91(mark(X1), X2, X3, X4)
MARK(U91(X1, X2, X3, X4)) → MARK(X1)
MARK(U92(X1, X2, X3, X4)) → A__U92(mark(X1), X2, X3, X4)
MARK(U92(X1, X2, X3, X4)) → MARK(X1)
MARK(U93(X1, X2, X3, X4)) → A__U93(mark(X1), X2, X3, X4)
MARK(U93(X1, X2, X3, X4)) → MARK(X1)
MARK(take(X1, X2)) → A__TAKE(mark(X1), mark(X2))
MARK(take(X1, X2)) → MARK(X1)
MARK(take(X1, X2)) → MARK(X2)
MARK(cons(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
a__zeros → cons(0, zeros)
a__U11(tt) → tt
a__U21(tt) → tt
a__U31(tt) → tt
a__U41(tt, V2) → a__U42(a__isNatIList(V2))
a__U42(tt) → tt
a__U51(tt, V2) → a__U52(a__isNatList(V2))
a__U52(tt) → tt
a__U61(tt, V2) → a__U62(a__isNatIList(V2))
a__U62(tt) → tt
a__U71(tt, L, N) → a__U72(a__isNat(N), L)
a__U72(tt, L) → s(a__length(mark(L)))
a__U81(tt) → nil
a__U91(tt, IL, M, N) → a__U92(a__isNat(M), IL, M, N)
a__U92(tt, IL, M, N) → a__U93(a__isNat(N), IL, M, N)
a__U93(tt, IL, M, N) → cons(mark(N), take(M, IL))
a__isNat(0) → tt
a__isNat(length(V1)) → a__U11(a__isNatList(V1))
a__isNat(s(V1)) → a__U21(a__isNat(V1))
a__isNatIList(V) → a__U31(a__isNatList(V))
a__isNatIList(zeros) → tt
a__isNatIList(cons(V1, V2)) → a__U41(a__isNat(V1), V2)
a__isNatList(nil) → tt
a__isNatList(cons(V1, V2)) → a__U51(a__isNat(V1), V2)
a__isNatList(take(V1, V2)) → a__U61(a__isNat(V1), V2)
a__length(nil) → 0
a__length(cons(N, L)) → a__U71(a__isNatList(L), L, N)
a__take(0, IL) → a__U81(a__isNatIList(IL))
a__take(s(M), cons(N, IL)) → a__U91(a__isNatIList(IL), IL, M, N)
mark(zeros) → a__zeros
mark(U11(X)) → a__U11(mark(X))
mark(U21(X)) → a__U21(mark(X))
mark(U31(X)) → a__U31(mark(X))
mark(U41(X1, X2)) → a__U41(mark(X1), X2)
mark(U42(X)) → a__U42(mark(X))
mark(isNatIList(X)) → a__isNatIList(X)
mark(U51(X1, X2)) → a__U51(mark(X1), X2)
mark(U52(X)) → a__U52(mark(X))
mark(isNatList(X)) → a__isNatList(X)
mark(U61(X1, X2)) → a__U61(mark(X1), X2)
mark(U62(X)) → a__U62(mark(X))
mark(U71(X1, X2, X3)) → a__U71(mark(X1), X2, X3)
mark(U72(X1, X2)) → a__U72(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(length(X)) → a__length(mark(X))
mark(U81(X)) → a__U81(mark(X))
mark(U91(X1, X2, X3, X4)) → a__U91(mark(X1), X2, X3, X4)
mark(U92(X1, X2, X3, X4)) → a__U92(mark(X1), X2, X3, X4)
mark(U93(X1, X2, X3, X4)) → a__U93(mark(X1), X2, X3, X4)
mark(take(X1, X2)) → a__take(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeros → zeros
a__U11(X) → U11(X)
a__U21(X) → U21(X)
a__U31(X) → U31(X)
a__U41(X1, X2) → U41(X1, X2)
a__U42(X) → U42(X)
a__isNatIList(X) → isNatIList(X)
a__U51(X1, X2) → U51(X1, X2)
a__U52(X) → U52(X)
a__isNatList(X) → isNatList(X)
a__U61(X1, X2) → U61(X1, X2)
a__U62(X) → U62(X)
a__U71(X1, X2, X3) → U71(X1, X2, X3)
a__U72(X1, X2) → U72(X1, X2)
a__isNat(X) → isNat(X)
a__length(X) → length(X)
a__U81(X) → U81(X)
a__U91(X1, X2, X3, X4) → U91(X1, X2, X3, X4)
a__U92(X1, X2, X3, X4) → U92(X1, X2, X3, X4)
a__U93(X1, X2, X3, X4) → U93(X1, X2, X3, X4)
a__take(X1, X2) → take(X1, X2)
A__U41(tt, V2) → A__ISNATILIST(V2)
A__ISNATILIST(V) → A__ISNATLIST(V)
A__ISNATLIST(cons(V1, V2)) → A__U51(a__isNat(V1), V2)
A__U51(tt, V2) → A__ISNATLIST(V2)
A__ISNATLIST(cons(V1, V2)) → A__ISNAT(V1)
A__ISNAT(length(V1)) → A__ISNATLIST(V1)
A__ISNATLIST(take(V1, V2)) → A__U61(a__isNat(V1), V2)
A__U61(tt, V2) → A__ISNATILIST(V2)
A__ISNATILIST(cons(V1, V2)) → A__U41(a__isNat(V1), V2)
A__ISNATILIST(cons(V1, V2)) → A__ISNAT(V1)
A__ISNAT(s(V1)) → A__ISNAT(V1)
A__ISNATLIST(take(V1, V2)) → A__ISNAT(V1)
a__zeros → cons(0, zeros)
a__U11(tt) → tt
a__U21(tt) → tt
a__U31(tt) → tt
a__U41(tt, V2) → a__U42(a__isNatIList(V2))
a__U42(tt) → tt
a__U51(tt, V2) → a__U52(a__isNatList(V2))
a__U52(tt) → tt
a__U61(tt, V2) → a__U62(a__isNatIList(V2))
a__U62(tt) → tt
a__U71(tt, L, N) → a__U72(a__isNat(N), L)
a__U72(tt, L) → s(a__length(mark(L)))
a__U81(tt) → nil
a__U91(tt, IL, M, N) → a__U92(a__isNat(M), IL, M, N)
a__U92(tt, IL, M, N) → a__U93(a__isNat(N), IL, M, N)
a__U93(tt, IL, M, N) → cons(mark(N), take(M, IL))
a__isNat(0) → tt
a__isNat(length(V1)) → a__U11(a__isNatList(V1))
a__isNat(s(V1)) → a__U21(a__isNat(V1))
a__isNatIList(V) → a__U31(a__isNatList(V))
a__isNatIList(zeros) → tt
a__isNatIList(cons(V1, V2)) → a__U41(a__isNat(V1), V2)
a__isNatList(nil) → tt
a__isNatList(cons(V1, V2)) → a__U51(a__isNat(V1), V2)
a__isNatList(take(V1, V2)) → a__U61(a__isNat(V1), V2)
a__length(nil) → 0
a__length(cons(N, L)) → a__U71(a__isNatList(L), L, N)
a__take(0, IL) → a__U81(a__isNatIList(IL))
a__take(s(M), cons(N, IL)) → a__U91(a__isNatIList(IL), IL, M, N)
mark(zeros) → a__zeros
mark(U11(X)) → a__U11(mark(X))
mark(U21(X)) → a__U21(mark(X))
mark(U31(X)) → a__U31(mark(X))
mark(U41(X1, X2)) → a__U41(mark(X1), X2)
mark(U42(X)) → a__U42(mark(X))
mark(isNatIList(X)) → a__isNatIList(X)
mark(U51(X1, X2)) → a__U51(mark(X1), X2)
mark(U52(X)) → a__U52(mark(X))
mark(isNatList(X)) → a__isNatList(X)
mark(U61(X1, X2)) → a__U61(mark(X1), X2)
mark(U62(X)) → a__U62(mark(X))
mark(U71(X1, X2, X3)) → a__U71(mark(X1), X2, X3)
mark(U72(X1, X2)) → a__U72(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(length(X)) → a__length(mark(X))
mark(U81(X)) → a__U81(mark(X))
mark(U91(X1, X2, X3, X4)) → a__U91(mark(X1), X2, X3, X4)
mark(U92(X1, X2, X3, X4)) → a__U92(mark(X1), X2, X3, X4)
mark(U93(X1, X2, X3, X4)) → a__U93(mark(X1), X2, X3, X4)
mark(take(X1, X2)) → a__take(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeros → zeros
a__U11(X) → U11(X)
a__U21(X) → U21(X)
a__U31(X) → U31(X)
a__U41(X1, X2) → U41(X1, X2)
a__U42(X) → U42(X)
a__isNatIList(X) → isNatIList(X)
a__U51(X1, X2) → U51(X1, X2)
a__U52(X) → U52(X)
a__isNatList(X) → isNatList(X)
a__U61(X1, X2) → U61(X1, X2)
a__U62(X) → U62(X)
a__U71(X1, X2, X3) → U71(X1, X2, X3)
a__U72(X1, X2) → U72(X1, X2)
a__isNat(X) → isNat(X)
a__length(X) → length(X)
a__U81(X) → U81(X)
a__U91(X1, X2, X3, X4) → U91(X1, X2, X3, X4)
a__U92(X1, X2, X3, X4) → U92(X1, X2, X3, X4)
a__U93(X1, X2, X3, X4) → U93(X1, X2, X3, X4)
a__take(X1, X2) → take(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
A__U41(tt, V2) → A__ISNATILIST(V2)
A__ISNATLIST(cons(V1, V2)) → A__U51(a__isNat(V1), V2)
A__U51(tt, V2) → A__ISNATLIST(V2)
A__ISNATLIST(cons(V1, V2)) → A__ISNAT(V1)
A__ISNAT(length(V1)) → A__ISNATLIST(V1)
A__ISNATLIST(take(V1, V2)) → A__U61(a__isNat(V1), V2)
A__U61(tt, V2) → A__ISNATILIST(V2)
A__ISNATILIST(cons(V1, V2)) → A__U41(a__isNat(V1), V2)
A__ISNATILIST(cons(V1, V2)) → A__ISNAT(V1)
A__ISNAT(s(V1)) → A__ISNAT(V1)
A__ISNATLIST(take(V1, V2)) → A__ISNAT(V1)
[AU411, cons2] > AU512 > [aU621, U621]
[AU411, cons2] > [aU41, aU42, U42] > aisNatIList1 > [aU31, U31] > [tt, s1, 0, aU211] > U211 > [aU621, U621]
[AU411, cons2] > [aU41, aU42, U42] > aisNatIList1 > aisNatList1 > [aU52, aU51, U51, U52] > [tt, s1, 0, aU211] > U211 > [aU621, U621]
[AU411, cons2] > [aU41, aU42, U42] > aisNatIList1 > isNatIList > [aU621, U621]
[AU411, cons2] > [aU41, aU42, U42] > U41 > [aU621, U621]
[length1, aU11, U11] > aisNatList1 > [aU52, aU51, U51, U52] > [tt, s1, 0, aU211] > U211 > [aU621, U621]
[take2, aU612, U612] > AU612 > [aU621, U621]
[take2, aU612, U612] > aisNatIList1 > [aU31, U31] > [tt, s1, 0, aU211] > U211 > [aU621, U621]
[take2, aU612, U612] > aisNatIList1 > aisNatList1 > [aU52, aU51, U51, U52] > [tt, s1, 0, aU211] > U211 > [aU621, U621]
[take2, aU612, U612] > aisNatIList1 > isNatIList > [aU621, U621]
isNatList1 > [aU621, U621]
nil > [tt, s1, 0, aU211] > U211 > [aU621, U621]
zeros > [tt, s1, 0, aU211] > U211 > [aU621, U621]
U31: []
U42: []
U11: []
aisNatIList1: [1]
isNatIList: []
take2: [1,2]
aU41: []
AU612: [2,1]
aU211: [1]
aU52: []
aU31: []
tt: []
isNatList1: [1]
zeros: []
U41: []
AU411: [1]
s1: [1]
aisNatList1: [1]
nil: []
aU621: [1]
U51: []
aU612: [1,2]
aU42: []
aU11: []
U52: []
0: []
U621: [1]
cons2: [2,1]
AU512: [2,1]
U612: [1,2]
aU51: []
length1: [1]
U211: [1]
a__U61(tt, V2) → a__U62(a__isNatIList(V2))
a__U52(tt) → tt
a__isNat(X) → isNat(X)
a__U62(tt) → tt
a__U41(tt, V2) → a__U42(a__isNatIList(V2))
a__U31(tt) → tt
a__U51(tt, V2) → a__U52(a__isNatList(V2))
a__U42(tt) → tt
a__isNat(0) → tt
a__isNat(s(V1)) → a__U21(a__isNat(V1))
a__isNat(length(V1)) → a__U11(a__isNatList(V1))
a__U11(X) → U11(X)
a__U21(X) → U21(X)
a__U31(X) → U31(X)
a__U41(X1, X2) → U41(X1, X2)
a__U42(X) → U42(X)
a__U11(tt) → tt
a__isNatIList(X) → isNatIList(X)
a__U51(X1, X2) → U51(X1, X2)
a__U21(tt) → tt
a__U52(X) → U52(X)
a__U61(X1, X2) → U61(X1, X2)
a__U62(X) → U62(X)
a__isNatIList(cons(V1, V2)) → a__U41(a__isNat(V1), V2)
a__isNatIList(V) → a__U31(a__isNatList(V))
a__isNatIList(zeros) → tt
a__isNatList(cons(V1, V2)) → a__U51(a__isNat(V1), V2)
a__isNatList(take(V1, V2)) → a__U61(a__isNat(V1), V2)
A__ISNATILIST(V) → A__ISNATLIST(V)
a__zeros → cons(0, zeros)
a__U11(tt) → tt
a__U21(tt) → tt
a__U31(tt) → tt
a__U41(tt, V2) → a__U42(a__isNatIList(V2))
a__U42(tt) → tt
a__U51(tt, V2) → a__U52(a__isNatList(V2))
a__U52(tt) → tt
a__U61(tt, V2) → a__U62(a__isNatIList(V2))
a__U62(tt) → tt
a__U71(tt, L, N) → a__U72(a__isNat(N), L)
a__U72(tt, L) → s(a__length(mark(L)))
a__U81(tt) → nil
a__U91(tt, IL, M, N) → a__U92(a__isNat(M), IL, M, N)
a__U92(tt, IL, M, N) → a__U93(a__isNat(N), IL, M, N)
a__U93(tt, IL, M, N) → cons(mark(N), take(M, IL))
a__isNat(0) → tt
a__isNat(length(V1)) → a__U11(a__isNatList(V1))
a__isNat(s(V1)) → a__U21(a__isNat(V1))
a__isNatIList(V) → a__U31(a__isNatList(V))
a__isNatIList(zeros) → tt
a__isNatIList(cons(V1, V2)) → a__U41(a__isNat(V1), V2)
a__isNatList(nil) → tt
a__isNatList(cons(V1, V2)) → a__U51(a__isNat(V1), V2)
a__isNatList(take(V1, V2)) → a__U61(a__isNat(V1), V2)
a__length(nil) → 0
a__length(cons(N, L)) → a__U71(a__isNatList(L), L, N)
a__take(0, IL) → a__U81(a__isNatIList(IL))
a__take(s(M), cons(N, IL)) → a__U91(a__isNatIList(IL), IL, M, N)
mark(zeros) → a__zeros
mark(U11(X)) → a__U11(mark(X))
mark(U21(X)) → a__U21(mark(X))
mark(U31(X)) → a__U31(mark(X))
mark(U41(X1, X2)) → a__U41(mark(X1), X2)
mark(U42(X)) → a__U42(mark(X))
mark(isNatIList(X)) → a__isNatIList(X)
mark(U51(X1, X2)) → a__U51(mark(X1), X2)
mark(U52(X)) → a__U52(mark(X))
mark(isNatList(X)) → a__isNatList(X)
mark(U61(X1, X2)) → a__U61(mark(X1), X2)
mark(U62(X)) → a__U62(mark(X))
mark(U71(X1, X2, X3)) → a__U71(mark(X1), X2, X3)
mark(U72(X1, X2)) → a__U72(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(length(X)) → a__length(mark(X))
mark(U81(X)) → a__U81(mark(X))
mark(U91(X1, X2, X3, X4)) → a__U91(mark(X1), X2, X3, X4)
mark(U92(X1, X2, X3, X4)) → a__U92(mark(X1), X2, X3, X4)
mark(U93(X1, X2, X3, X4)) → a__U93(mark(X1), X2, X3, X4)
mark(take(X1, X2)) → a__take(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeros → zeros
a__U11(X) → U11(X)
a__U21(X) → U21(X)
a__U31(X) → U31(X)
a__U41(X1, X2) → U41(X1, X2)
a__U42(X) → U42(X)
a__isNatIList(X) → isNatIList(X)
a__U51(X1, X2) → U51(X1, X2)
a__U52(X) → U52(X)
a__isNatList(X) → isNatList(X)
a__U61(X1, X2) → U61(X1, X2)
a__U62(X) → U62(X)
a__U71(X1, X2, X3) → U71(X1, X2, X3)
a__U72(X1, X2) → U72(X1, X2)
a__isNat(X) → isNat(X)
a__length(X) → length(X)
a__U81(X) → U81(X)
a__U91(X1, X2, X3, X4) → U91(X1, X2, X3, X4)
a__U92(X1, X2, X3, X4) → U92(X1, X2, X3, X4)
a__U93(X1, X2, X3, X4) → U93(X1, X2, X3, X4)
a__take(X1, X2) → take(X1, X2)
MARK(U11(X)) → MARK(X)
MARK(U21(X)) → MARK(X)
MARK(U31(X)) → MARK(X)
MARK(U41(X1, X2)) → MARK(X1)
MARK(U42(X)) → MARK(X)
MARK(U51(X1, X2)) → MARK(X1)
MARK(U52(X)) → MARK(X)
MARK(U61(X1, X2)) → MARK(X1)
MARK(U62(X)) → MARK(X)
MARK(U71(X1, X2, X3)) → A__U71(mark(X1), X2, X3)
A__U71(tt, L, N) → A__U72(a__isNat(N), L)
A__U72(tt, L) → A__LENGTH(mark(L))
A__LENGTH(cons(N, L)) → A__U71(a__isNatList(L), L, N)
A__U72(tt, L) → MARK(L)
MARK(U71(X1, X2, X3)) → MARK(X1)
MARK(U72(X1, X2)) → A__U72(mark(X1), X2)
MARK(U72(X1, X2)) → MARK(X1)
MARK(length(X)) → A__LENGTH(mark(X))
MARK(length(X)) → MARK(X)
MARK(U81(X)) → MARK(X)
MARK(U91(X1, X2, X3, X4)) → A__U91(mark(X1), X2, X3, X4)
A__U91(tt, IL, M, N) → A__U92(a__isNat(M), IL, M, N)
A__U92(tt, IL, M, N) → A__U93(a__isNat(N), IL, M, N)
A__U93(tt, IL, M, N) → MARK(N)
MARK(U91(X1, X2, X3, X4)) → MARK(X1)
MARK(U92(X1, X2, X3, X4)) → A__U92(mark(X1), X2, X3, X4)
MARK(U92(X1, X2, X3, X4)) → MARK(X1)
MARK(U93(X1, X2, X3, X4)) → A__U93(mark(X1), X2, X3, X4)
MARK(U93(X1, X2, X3, X4)) → MARK(X1)
MARK(take(X1, X2)) → A__TAKE(mark(X1), mark(X2))
A__TAKE(s(M), cons(N, IL)) → A__U91(a__isNatIList(IL), IL, M, N)
MARK(take(X1, X2)) → MARK(X1)
MARK(take(X1, X2)) → MARK(X2)
MARK(cons(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
a__zeros → cons(0, zeros)
a__U11(tt) → tt
a__U21(tt) → tt
a__U31(tt) → tt
a__U41(tt, V2) → a__U42(a__isNatIList(V2))
a__U42(tt) → tt
a__U51(tt, V2) → a__U52(a__isNatList(V2))
a__U52(tt) → tt
a__U61(tt, V2) → a__U62(a__isNatIList(V2))
a__U62(tt) → tt
a__U71(tt, L, N) → a__U72(a__isNat(N), L)
a__U72(tt, L) → s(a__length(mark(L)))
a__U81(tt) → nil
a__U91(tt, IL, M, N) → a__U92(a__isNat(M), IL, M, N)
a__U92(tt, IL, M, N) → a__U93(a__isNat(N), IL, M, N)
a__U93(tt, IL, M, N) → cons(mark(N), take(M, IL))
a__isNat(0) → tt
a__isNat(length(V1)) → a__U11(a__isNatList(V1))
a__isNat(s(V1)) → a__U21(a__isNat(V1))
a__isNatIList(V) → a__U31(a__isNatList(V))
a__isNatIList(zeros) → tt
a__isNatIList(cons(V1, V2)) → a__U41(a__isNat(V1), V2)
a__isNatList(nil) → tt
a__isNatList(cons(V1, V2)) → a__U51(a__isNat(V1), V2)
a__isNatList(take(V1, V2)) → a__U61(a__isNat(V1), V2)
a__length(nil) → 0
a__length(cons(N, L)) → a__U71(a__isNatList(L), L, N)
a__take(0, IL) → a__U81(a__isNatIList(IL))
a__take(s(M), cons(N, IL)) → a__U91(a__isNatIList(IL), IL, M, N)
mark(zeros) → a__zeros
mark(U11(X)) → a__U11(mark(X))
mark(U21(X)) → a__U21(mark(X))
mark(U31(X)) → a__U31(mark(X))
mark(U41(X1, X2)) → a__U41(mark(X1), X2)
mark(U42(X)) → a__U42(mark(X))
mark(isNatIList(X)) → a__isNatIList(X)
mark(U51(X1, X2)) → a__U51(mark(X1), X2)
mark(U52(X)) → a__U52(mark(X))
mark(isNatList(X)) → a__isNatList(X)
mark(U61(X1, X2)) → a__U61(mark(X1), X2)
mark(U62(X)) → a__U62(mark(X))
mark(U71(X1, X2, X3)) → a__U71(mark(X1), X2, X3)
mark(U72(X1, X2)) → a__U72(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(length(X)) → a__length(mark(X))
mark(U81(X)) → a__U81(mark(X))
mark(U91(X1, X2, X3, X4)) → a__U91(mark(X1), X2, X3, X4)
mark(U92(X1, X2, X3, X4)) → a__U92(mark(X1), X2, X3, X4)
mark(U93(X1, X2, X3, X4)) → a__U93(mark(X1), X2, X3, X4)
mark(take(X1, X2)) → a__take(mark(X1), mark(X2))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(nil) → nil
a__zeros → zeros
a__U11(X) → U11(X)
a__U21(X) → U21(X)
a__U31(X) → U31(X)
a__U41(X1, X2) → U41(X1, X2)
a__U42(X) → U42(X)
a__isNatIList(X) → isNatIList(X)
a__U51(X1, X2) → U51(X1, X2)
a__U52(X) → U52(X)
a__isNatList(X) → isNatList(X)
a__U61(X1, X2) → U61(X1, X2)
a__U62(X) → U62(X)
a__U71(X1, X2, X3) → U71(X1, X2, X3)
a__U72(X1, X2) → U72(X1, X2)
a__isNat(X) → isNat(X)
a__length(X) → length(X)
a__U81(X) → U81(X)
a__U91(X1, X2, X3, X4) → U91(X1, X2, X3, X4)
a__U92(X1, X2, X3, X4) → U92(X1, X2, X3, X4)
a__U93(X1, X2, X3, X4) → U93(X1, X2, X3, X4)
a__take(X1, X2) → take(X1, X2)