(0) Obligation:

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

U11(tt, N, XS) → U12(tt, activate(N), activate(XS))
U12(tt, N, XS) → snd(splitAt(activate(N), activate(XS)))
U21(tt, X) → U22(tt, activate(X))
U22(tt, X) → activate(X)
U31(tt, N) → U32(tt, activate(N))
U32(tt, N) → activate(N)
U41(tt, N, XS) → U42(tt, activate(N), activate(XS))
U42(tt, N, XS) → head(afterNth(activate(N), activate(XS)))
U51(tt, Y) → U52(tt, activate(Y))
U52(tt, Y) → activate(Y)
U61(tt, N, X, XS) → U62(tt, activate(N), activate(X), activate(XS))
U62(tt, N, X, XS) → U63(tt, activate(N), activate(X), activate(XS))
U63(tt, N, X, XS) → U64(splitAt(activate(N), activate(XS)), activate(X))
U64(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
U71(tt, XS) → U72(tt, activate(XS))
U72(tt, XS) → activate(XS)
U81(tt, N, XS) → U82(tt, activate(N), activate(XS))
U82(tt, N, XS) → fst(splitAt(activate(N), activate(XS)))
afterNth(N, XS) → U11(tt, N, XS)
fst(pair(X, Y)) → U21(tt, X)
head(cons(N, XS)) → U31(tt, N)
natsFrom(N) → cons(N, n__natsFrom(s(N)))
sel(N, XS) → U41(tt, N, XS)
snd(pair(X, Y)) → U51(tt, Y)
splitAt(0, XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U61(tt, N, X, activate(XS))
tail(cons(N, XS)) → U71(tt, activate(XS))
take(N, XS) → U81(tt, N, XS)
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
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:

U111(tt, N, XS) → U121(tt, activate(N), activate(XS))
U111(tt, N, XS) → ACTIVATE(N)
U111(tt, N, XS) → ACTIVATE(XS)
U121(tt, N, XS) → SND(splitAt(activate(N), activate(XS)))
U121(tt, N, XS) → SPLITAT(activate(N), activate(XS))
U121(tt, N, XS) → ACTIVATE(N)
U121(tt, N, XS) → ACTIVATE(XS)
U211(tt, X) → U221(tt, activate(X))
U211(tt, X) → ACTIVATE(X)
U221(tt, X) → ACTIVATE(X)
U311(tt, N) → U321(tt, activate(N))
U311(tt, N) → ACTIVATE(N)
U321(tt, N) → ACTIVATE(N)
U411(tt, N, XS) → U421(tt, activate(N), activate(XS))
U411(tt, N, XS) → ACTIVATE(N)
U411(tt, N, XS) → ACTIVATE(XS)
U421(tt, N, XS) → HEAD(afterNth(activate(N), activate(XS)))
U421(tt, N, XS) → AFTERNTH(activate(N), activate(XS))
U421(tt, N, XS) → ACTIVATE(N)
U421(tt, N, XS) → ACTIVATE(XS)
U511(tt, Y) → U521(tt, activate(Y))
U511(tt, Y) → ACTIVATE(Y)
U521(tt, Y) → ACTIVATE(Y)
U611(tt, N, X, XS) → U621(tt, activate(N), activate(X), activate(XS))
U611(tt, N, X, XS) → ACTIVATE(N)
U611(tt, N, X, XS) → ACTIVATE(X)
U611(tt, N, X, XS) → ACTIVATE(XS)
U621(tt, N, X, XS) → U631(tt, activate(N), activate(X), activate(XS))
U621(tt, N, X, XS) → ACTIVATE(N)
U621(tt, N, X, XS) → ACTIVATE(X)
U621(tt, N, X, XS) → ACTIVATE(XS)
U631(tt, N, X, XS) → U641(splitAt(activate(N), activate(XS)), activate(X))
U631(tt, N, X, XS) → SPLITAT(activate(N), activate(XS))
U631(tt, N, X, XS) → ACTIVATE(N)
U631(tt, N, X, XS) → ACTIVATE(XS)
U631(tt, N, X, XS) → ACTIVATE(X)
U641(pair(YS, ZS), X) → ACTIVATE(X)
U711(tt, XS) → U721(tt, activate(XS))
U711(tt, XS) → ACTIVATE(XS)
U721(tt, XS) → ACTIVATE(XS)
U811(tt, N, XS) → U821(tt, activate(N), activate(XS))
U811(tt, N, XS) → ACTIVATE(N)
U811(tt, N, XS) → ACTIVATE(XS)
U821(tt, N, XS) → FST(splitAt(activate(N), activate(XS)))
U821(tt, N, XS) → SPLITAT(activate(N), activate(XS))
U821(tt, N, XS) → ACTIVATE(N)
U821(tt, N, XS) → ACTIVATE(XS)
AFTERNTH(N, XS) → U111(tt, N, XS)
FST(pair(X, Y)) → U211(tt, X)
HEAD(cons(N, XS)) → U311(tt, N)
SEL(N, XS) → U411(tt, N, XS)
SND(pair(X, Y)) → U511(tt, Y)
SPLITAT(s(N), cons(X, XS)) → U611(tt, N, X, activate(XS))
SPLITAT(s(N), cons(X, XS)) → ACTIVATE(XS)
TAIL(cons(N, XS)) → U711(tt, activate(XS))
TAIL(cons(N, XS)) → ACTIVATE(XS)
TAKE(N, XS) → U811(tt, N, XS)
ACTIVATE(n__natsFrom(X)) → NATSFROM(X)

The TRS R consists of the following rules:

U11(tt, N, XS) → U12(tt, activate(N), activate(XS))
U12(tt, N, XS) → snd(splitAt(activate(N), activate(XS)))
U21(tt, X) → U22(tt, activate(X))
U22(tt, X) → activate(X)
U31(tt, N) → U32(tt, activate(N))
U32(tt, N) → activate(N)
U41(tt, N, XS) → U42(tt, activate(N), activate(XS))
U42(tt, N, XS) → head(afterNth(activate(N), activate(XS)))
U51(tt, Y) → U52(tt, activate(Y))
U52(tt, Y) → activate(Y)
U61(tt, N, X, XS) → U62(tt, activate(N), activate(X), activate(XS))
U62(tt, N, X, XS) → U63(tt, activate(N), activate(X), activate(XS))
U63(tt, N, X, XS) → U64(splitAt(activate(N), activate(XS)), activate(X))
U64(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
U71(tt, XS) → U72(tt, activate(XS))
U72(tt, XS) → activate(XS)
U81(tt, N, XS) → U82(tt, activate(N), activate(XS))
U82(tt, N, XS) → fst(splitAt(activate(N), activate(XS)))
afterNth(N, XS) → U11(tt, N, XS)
fst(pair(X, Y)) → U21(tt, X)
head(cons(N, XS)) → U31(tt, N)
natsFrom(N) → cons(N, n__natsFrom(s(N)))
sel(N, XS) → U41(tt, N, XS)
snd(pair(X, Y)) → U51(tt, Y)
splitAt(0, XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U61(tt, N, X, activate(XS))
tail(cons(N, XS)) → U71(tt, activate(XS))
take(N, XS) → U81(tt, N, XS)
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
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 54 less nodes.

(4) Obligation:

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

U621(tt, N, X, XS) → U631(tt, activate(N), activate(X), activate(XS))
U631(tt, N, X, XS) → SPLITAT(activate(N), activate(XS))
SPLITAT(s(N), cons(X, XS)) → U611(tt, N, X, activate(XS))
U611(tt, N, X, XS) → U621(tt, activate(N), activate(X), activate(XS))

The TRS R consists of the following rules:

U11(tt, N, XS) → U12(tt, activate(N), activate(XS))
U12(tt, N, XS) → snd(splitAt(activate(N), activate(XS)))
U21(tt, X) → U22(tt, activate(X))
U22(tt, X) → activate(X)
U31(tt, N) → U32(tt, activate(N))
U32(tt, N) → activate(N)
U41(tt, N, XS) → U42(tt, activate(N), activate(XS))
U42(tt, N, XS) → head(afterNth(activate(N), activate(XS)))
U51(tt, Y) → U52(tt, activate(Y))
U52(tt, Y) → activate(Y)
U61(tt, N, X, XS) → U62(tt, activate(N), activate(X), activate(XS))
U62(tt, N, X, XS) → U63(tt, activate(N), activate(X), activate(XS))
U63(tt, N, X, XS) → U64(splitAt(activate(N), activate(XS)), activate(X))
U64(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
U71(tt, XS) → U72(tt, activate(XS))
U72(tt, XS) → activate(XS)
U81(tt, N, XS) → U82(tt, activate(N), activate(XS))
U82(tt, N, XS) → fst(splitAt(activate(N), activate(XS)))
afterNth(N, XS) → U11(tt, N, XS)
fst(pair(X, Y)) → U21(tt, X)
head(cons(N, XS)) → U31(tt, N)
natsFrom(N) → cons(N, n__natsFrom(s(N)))
sel(N, XS) → U41(tt, N, XS)
snd(pair(X, Y)) → U51(tt, Y)
splitAt(0, XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U61(tt, N, X, activate(XS))
tail(cons(N, XS)) → U71(tt, activate(XS))
take(N, XS) → U81(tt, N, XS)
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

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

(5) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(tt, N, X, XS) → U631(tt, activate(N), activate(X), activate(XS))
U631(tt, N, X, XS) → SPLITAT(activate(N), activate(XS))
SPLITAT(s(N), cons(X, XS)) → U611(tt, N, X, activate(XS))
U611(tt, N, X, XS) → U621(tt, activate(N), activate(X), activate(XS))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U621(x1, x2, x3, x4)  =  U621(x2)
U631(x1, x2, x3, x4)  =  U631(x2)
activate(x1)  =  activate(x1)
SPLITAT(x1, x2)  =  x1
s(x1)  =  s(x1)
U611(x1, x2, x3, x4)  =  U611(x2)
n__natsFrom(x1)  =  n__natsFrom
natsFrom(x1)  =  natsFrom
cons(x1, x2)  =  cons

Lexicographic Path Order [LPO].
Precedence:
s1 > U61^11 > U62^11 > U63^11 > activate1 > natsFrom > nnatsFrom
s1 > U61^11 > U62^11 > U63^11 > activate1 > natsFrom > cons

The following usable rules [FROCOS05] were oriented:

activate(X) → X
activate(n__natsFrom(X)) → natsFrom(X)
natsFrom(X) → n__natsFrom(X)
natsFrom(N) → cons(N, n__natsFrom(s(N)))

(6) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

U11(tt, N, XS) → U12(tt, activate(N), activate(XS))
U12(tt, N, XS) → snd(splitAt(activate(N), activate(XS)))
U21(tt, X) → U22(tt, activate(X))
U22(tt, X) → activate(X)
U31(tt, N) → U32(tt, activate(N))
U32(tt, N) → activate(N)
U41(tt, N, XS) → U42(tt, activate(N), activate(XS))
U42(tt, N, XS) → head(afterNth(activate(N), activate(XS)))
U51(tt, Y) → U52(tt, activate(Y))
U52(tt, Y) → activate(Y)
U61(tt, N, X, XS) → U62(tt, activate(N), activate(X), activate(XS))
U62(tt, N, X, XS) → U63(tt, activate(N), activate(X), activate(XS))
U63(tt, N, X, XS) → U64(splitAt(activate(N), activate(XS)), activate(X))
U64(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
U71(tt, XS) → U72(tt, activate(XS))
U72(tt, XS) → activate(XS)
U81(tt, N, XS) → U82(tt, activate(N), activate(XS))
U82(tt, N, XS) → fst(splitAt(activate(N), activate(XS)))
afterNth(N, XS) → U11(tt, N, XS)
fst(pair(X, Y)) → U21(tt, X)
head(cons(N, XS)) → U31(tt, N)
natsFrom(N) → cons(N, n__natsFrom(s(N)))
sel(N, XS) → U41(tt, N, XS)
snd(pair(X, Y)) → U51(tt, Y)
splitAt(0, XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U61(tt, N, X, activate(XS))
tail(cons(N, XS)) → U71(tt, activate(XS))
take(N, XS) → U81(tt, N, XS)
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

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

(7) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(8) TRUE