(0) Obligation:

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

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

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:

ACTIVE(U11(tt, N, XS)) → MARK(U12(tt, N, XS))
ACTIVE(U11(tt, N, XS)) → U121(tt, N, XS)
ACTIVE(U12(tt, N, XS)) → MARK(snd(splitAt(N, XS)))
ACTIVE(U12(tt, N, XS)) → SND(splitAt(N, XS))
ACTIVE(U12(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(U21(tt, X)) → MARK(U22(tt, X))
ACTIVE(U21(tt, X)) → U221(tt, X)
ACTIVE(U22(tt, X)) → MARK(X)
ACTIVE(U31(tt, N)) → MARK(U32(tt, N))
ACTIVE(U31(tt, N)) → U321(tt, N)
ACTIVE(U32(tt, N)) → MARK(N)
ACTIVE(U41(tt, N, XS)) → MARK(U42(tt, N, XS))
ACTIVE(U41(tt, N, XS)) → U421(tt, N, XS)
ACTIVE(U42(tt, N, XS)) → MARK(head(afterNth(N, XS)))
ACTIVE(U42(tt, N, XS)) → HEAD(afterNth(N, XS))
ACTIVE(U42(tt, N, XS)) → AFTERNTH(N, XS)
ACTIVE(U51(tt, Y)) → MARK(U52(tt, Y))
ACTIVE(U51(tt, Y)) → U521(tt, Y)
ACTIVE(U52(tt, Y)) → MARK(Y)
ACTIVE(U61(tt, N, X, XS)) → MARK(U62(tt, N, X, XS))
ACTIVE(U61(tt, N, X, XS)) → U621(tt, N, X, XS)
ACTIVE(U62(tt, N, X, XS)) → MARK(U63(tt, N, X, XS))
ACTIVE(U62(tt, N, X, XS)) → U631(tt, N, X, XS)
ACTIVE(U63(tt, N, X, XS)) → MARK(U64(splitAt(N, XS), X))
ACTIVE(U63(tt, N, X, XS)) → U641(splitAt(N, XS), X)
ACTIVE(U63(tt, N, X, XS)) → SPLITAT(N, XS)
ACTIVE(U64(pair(YS, ZS), X)) → MARK(pair(cons(X, YS), ZS))
ACTIVE(U64(pair(YS, ZS), X)) → PAIR(cons(X, YS), ZS)
ACTIVE(U64(pair(YS, ZS), X)) → CONS(X, YS)
ACTIVE(U71(tt, XS)) → MARK(U72(tt, XS))
ACTIVE(U71(tt, XS)) → U721(tt, XS)
ACTIVE(U72(tt, XS)) → MARK(XS)
ACTIVE(U81(tt, N, XS)) → MARK(U82(tt, N, XS))
ACTIVE(U81(tt, N, XS)) → U821(tt, N, XS)
ACTIVE(U82(tt, N, XS)) → MARK(fst(splitAt(N, XS)))
ACTIVE(U82(tt, N, XS)) → FST(splitAt(N, XS))
ACTIVE(U82(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(afterNth(N, XS)) → MARK(U11(tt, N, XS))
ACTIVE(afterNth(N, XS)) → U111(tt, N, XS)
ACTIVE(fst(pair(X, Y))) → MARK(U21(tt, X))
ACTIVE(fst(pair(X, Y))) → U211(tt, X)
ACTIVE(head(cons(N, XS))) → MARK(U31(tt, N))
ACTIVE(head(cons(N, XS))) → U311(tt, N)
ACTIVE(natsFrom(N)) → MARK(cons(N, natsFrom(s(N))))
ACTIVE(natsFrom(N)) → CONS(N, natsFrom(s(N)))
ACTIVE(natsFrom(N)) → NATSFROM(s(N))
ACTIVE(natsFrom(N)) → S(N)
ACTIVE(sel(N, XS)) → MARK(U41(tt, N, XS))
ACTIVE(sel(N, XS)) → U411(tt, N, XS)
ACTIVE(snd(pair(X, Y))) → MARK(U51(tt, Y))
ACTIVE(snd(pair(X, Y))) → U511(tt, Y)
ACTIVE(splitAt(0, XS)) → MARK(pair(nil, XS))
ACTIVE(splitAt(0, XS)) → PAIR(nil, XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → MARK(U61(tt, N, X, XS))
ACTIVE(splitAt(s(N), cons(X, XS))) → U611(tt, N, X, XS)
ACTIVE(tail(cons(N, XS))) → MARK(U71(tt, XS))
ACTIVE(tail(cons(N, XS))) → U711(tt, XS)
ACTIVE(take(N, XS)) → MARK(U81(tt, N, XS))
ACTIVE(take(N, XS)) → U811(tt, N, XS)
MARK(U11(X1, X2, X3)) → ACTIVE(U11(mark(X1), X2, X3))
MARK(U11(X1, X2, X3)) → U111(mark(X1), X2, X3)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(tt) → ACTIVE(tt)
MARK(U12(X1, X2, X3)) → ACTIVE(U12(mark(X1), X2, X3))
MARK(U12(X1, X2, X3)) → U121(mark(X1), X2, X3)
MARK(U12(X1, X2, X3)) → MARK(X1)
MARK(snd(X)) → ACTIVE(snd(mark(X)))
MARK(snd(X)) → SND(mark(X))
MARK(snd(X)) → MARK(X)
MARK(splitAt(X1, X2)) → ACTIVE(splitAt(mark(X1), mark(X2)))
MARK(splitAt(X1, X2)) → SPLITAT(mark(X1), mark(X2))
MARK(splitAt(X1, X2)) → MARK(X1)
MARK(splitAt(X1, X2)) → MARK(X2)
MARK(U21(X1, X2)) → ACTIVE(U21(mark(X1), X2))
MARK(U21(X1, X2)) → U211(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U22(X1, X2)) → ACTIVE(U22(mark(X1), X2))
MARK(U22(X1, X2)) → U221(mark(X1), X2)
MARK(U22(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → ACTIVE(U31(mark(X1), X2))
MARK(U31(X1, X2)) → U311(mark(X1), X2)
MARK(U31(X1, X2)) → MARK(X1)
MARK(U32(X1, X2)) → ACTIVE(U32(mark(X1), X2))
MARK(U32(X1, X2)) → U321(mark(X1), X2)
MARK(U32(X1, X2)) → MARK(X1)
MARK(U41(X1, X2, X3)) → ACTIVE(U41(mark(X1), X2, X3))
MARK(U41(X1, X2, X3)) → U411(mark(X1), X2, X3)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(U42(X1, X2, X3)) → ACTIVE(U42(mark(X1), X2, X3))
MARK(U42(X1, X2, X3)) → U421(mark(X1), X2, X3)
MARK(U42(X1, X2, X3)) → MARK(X1)
MARK(head(X)) → ACTIVE(head(mark(X)))
MARK(head(X)) → HEAD(mark(X))
MARK(head(X)) → MARK(X)
MARK(afterNth(X1, X2)) → ACTIVE(afterNth(mark(X1), mark(X2)))
MARK(afterNth(X1, X2)) → AFTERNTH(mark(X1), mark(X2))
MARK(afterNth(X1, X2)) → MARK(X1)
MARK(afterNth(X1, X2)) → MARK(X2)
MARK(U51(X1, X2)) → ACTIVE(U51(mark(X1), X2))
MARK(U51(X1, X2)) → U511(mark(X1), X2)
MARK(U51(X1, X2)) → MARK(X1)
MARK(U52(X1, X2)) → ACTIVE(U52(mark(X1), X2))
MARK(U52(X1, X2)) → U521(mark(X1), X2)
MARK(U52(X1, X2)) → MARK(X1)
MARK(U61(X1, X2, X3, X4)) → ACTIVE(U61(mark(X1), X2, X3, X4))
MARK(U61(X1, X2, X3, X4)) → U611(mark(X1), X2, X3, X4)
MARK(U61(X1, X2, X3, X4)) → MARK(X1)
MARK(U62(X1, X2, X3, X4)) → ACTIVE(U62(mark(X1), X2, X3, X4))
MARK(U62(X1, X2, X3, X4)) → U621(mark(X1), X2, X3, X4)
MARK(U62(X1, X2, X3, X4)) → MARK(X1)
MARK(U63(X1, X2, X3, X4)) → ACTIVE(U63(mark(X1), X2, X3, X4))
MARK(U63(X1, X2, X3, X4)) → U631(mark(X1), X2, X3, X4)
MARK(U63(X1, X2, X3, X4)) → MARK(X1)
MARK(U64(X1, X2)) → ACTIVE(U64(mark(X1), X2))
MARK(U64(X1, X2)) → U641(mark(X1), X2)
MARK(U64(X1, X2)) → MARK(X1)
MARK(pair(X1, X2)) → ACTIVE(pair(mark(X1), mark(X2)))
MARK(pair(X1, X2)) → PAIR(mark(X1), mark(X2))
MARK(pair(X1, X2)) → MARK(X1)
MARK(pair(X1, X2)) → MARK(X2)
MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
MARK(cons(X1, X2)) → CONS(mark(X1), X2)
MARK(cons(X1, X2)) → MARK(X1)
MARK(U71(X1, X2)) → ACTIVE(U71(mark(X1), X2))
MARK(U71(X1, X2)) → U711(mark(X1), X2)
MARK(U71(X1, X2)) → MARK(X1)
MARK(U72(X1, X2)) → ACTIVE(U72(mark(X1), X2))
MARK(U72(X1, X2)) → U721(mark(X1), X2)
MARK(U72(X1, X2)) → MARK(X1)
MARK(U81(X1, X2, X3)) → ACTIVE(U81(mark(X1), X2, X3))
MARK(U81(X1, X2, X3)) → U811(mark(X1), X2, X3)
MARK(U81(X1, X2, X3)) → MARK(X1)
MARK(U82(X1, X2, X3)) → ACTIVE(U82(mark(X1), X2, X3))
MARK(U82(X1, X2, X3)) → U821(mark(X1), X2, X3)
MARK(U82(X1, X2, X3)) → MARK(X1)
MARK(fst(X)) → ACTIVE(fst(mark(X)))
MARK(fst(X)) → FST(mark(X))
MARK(fst(X)) → MARK(X)
MARK(natsFrom(X)) → ACTIVE(natsFrom(mark(X)))
MARK(natsFrom(X)) → NATSFROM(mark(X))
MARK(natsFrom(X)) → MARK(X)
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(s(X)) → S(mark(X))
MARK(s(X)) → MARK(X)
MARK(sel(X1, X2)) → ACTIVE(sel(mark(X1), mark(X2)))
MARK(sel(X1, X2)) → SEL(mark(X1), mark(X2))
MARK(sel(X1, X2)) → MARK(X1)
MARK(sel(X1, X2)) → MARK(X2)
MARK(0) → ACTIVE(0)
MARK(nil) → ACTIVE(nil)
MARK(tail(X)) → ACTIVE(tail(mark(X)))
MARK(tail(X)) → TAIL(mark(X))
MARK(tail(X)) → MARK(X)
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
MARK(take(X1, X2)) → TAKE(mark(X1), mark(X2))
MARK(take(X1, X2)) → MARK(X1)
MARK(take(X1, X2)) → MARK(X2)
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
U111(X1, mark(X2), X3) → U111(X1, X2, X3)
U111(X1, X2, mark(X3)) → U111(X1, X2, X3)
U111(active(X1), X2, X3) → U111(X1, X2, X3)
U111(X1, active(X2), X3) → U111(X1, X2, X3)
U111(X1, X2, active(X3)) → U111(X1, X2, X3)
U121(mark(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, mark(X2), X3) → U121(X1, X2, X3)
U121(X1, X2, mark(X3)) → U121(X1, X2, X3)
U121(active(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, active(X2), X3) → U121(X1, X2, X3)
U121(X1, X2, active(X3)) → U121(X1, X2, X3)
SND(mark(X)) → SND(X)
SND(active(X)) → SND(X)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
SPLITAT(active(X1), X2) → SPLITAT(X1, X2)
SPLITAT(X1, active(X2)) → SPLITAT(X1, X2)
U211(mark(X1), X2) → U211(X1, X2)
U211(X1, mark(X2)) → U211(X1, X2)
U211(active(X1), X2) → U211(X1, X2)
U211(X1, active(X2)) → U211(X1, X2)
U221(mark(X1), X2) → U221(X1, X2)
U221(X1, mark(X2)) → U221(X1, X2)
U221(active(X1), X2) → U221(X1, X2)
U221(X1, active(X2)) → U221(X1, X2)
U311(mark(X1), X2) → U311(X1, X2)
U311(X1, mark(X2)) → U311(X1, X2)
U311(active(X1), X2) → U311(X1, X2)
U311(X1, active(X2)) → U311(X1, X2)
U321(mark(X1), X2) → U321(X1, X2)
U321(X1, mark(X2)) → U321(X1, X2)
U321(active(X1), X2) → U321(X1, X2)
U321(X1, active(X2)) → U321(X1, X2)
U411(mark(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, mark(X2), X3) → U411(X1, X2, X3)
U411(X1, X2, mark(X3)) → U411(X1, X2, X3)
U411(active(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, active(X2), X3) → U411(X1, X2, X3)
U411(X1, X2, active(X3)) → U411(X1, X2, X3)
U421(mark(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, mark(X2), X3) → U421(X1, X2, X3)
U421(X1, X2, mark(X3)) → U421(X1, X2, X3)
U421(active(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, active(X2), X3) → U421(X1, X2, X3)
U421(X1, X2, active(X3)) → U421(X1, X2, X3)
HEAD(mark(X)) → HEAD(X)
HEAD(active(X)) → HEAD(X)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
AFTERNTH(active(X1), X2) → AFTERNTH(X1, X2)
AFTERNTH(X1, active(X2)) → AFTERNTH(X1, X2)
U511(mark(X1), X2) → U511(X1, X2)
U511(X1, mark(X2)) → U511(X1, X2)
U511(active(X1), X2) → U511(X1, X2)
U511(X1, active(X2)) → U511(X1, X2)
U521(mark(X1), X2) → U521(X1, X2)
U521(X1, mark(X2)) → U521(X1, X2)
U521(active(X1), X2) → U521(X1, X2)
U521(X1, active(X2)) → U521(X1, X2)
U611(mark(X1), X2, X3, X4) → U611(X1, X2, X3, X4)
U611(X1, mark(X2), X3, X4) → U611(X1, X2, X3, X4)
U611(X1, X2, mark(X3), X4) → U611(X1, X2, X3, X4)
U611(X1, X2, X3, mark(X4)) → U611(X1, X2, X3, X4)
U611(active(X1), X2, X3, X4) → U611(X1, X2, X3, X4)
U611(X1, active(X2), X3, X4) → U611(X1, X2, X3, X4)
U611(X1, X2, active(X3), X4) → U611(X1, X2, X3, X4)
U611(X1, X2, X3, active(X4)) → U611(X1, X2, X3, X4)
U621(mark(X1), X2, X3, X4) → U621(X1, X2, X3, X4)
U621(X1, mark(X2), X3, X4) → U621(X1, X2, X3, X4)
U621(X1, X2, mark(X3), X4) → U621(X1, X2, X3, X4)
U621(X1, X2, X3, mark(X4)) → U621(X1, X2, X3, X4)
U621(active(X1), X2, X3, X4) → U621(X1, X2, X3, X4)
U621(X1, active(X2), X3, X4) → U621(X1, X2, X3, X4)
U621(X1, X2, active(X3), X4) → U621(X1, X2, X3, X4)
U621(X1, X2, X3, active(X4)) → U621(X1, X2, X3, X4)
U631(mark(X1), X2, X3, X4) → U631(X1, X2, X3, X4)
U631(X1, mark(X2), X3, X4) → U631(X1, X2, X3, X4)
U631(X1, X2, mark(X3), X4) → U631(X1, X2, X3, X4)
U631(X1, X2, X3, mark(X4)) → U631(X1, X2, X3, X4)
U631(active(X1), X2, X3, X4) → U631(X1, X2, X3, X4)
U631(X1, active(X2), X3, X4) → U631(X1, X2, X3, X4)
U631(X1, X2, active(X3), X4) → U631(X1, X2, X3, X4)
U631(X1, X2, X3, active(X4)) → U631(X1, X2, X3, X4)
U641(mark(X1), X2) → U641(X1, X2)
U641(X1, mark(X2)) → U641(X1, X2)
U641(active(X1), X2) → U641(X1, X2)
U641(X1, active(X2)) → U641(X1, X2)
PAIR(mark(X1), X2) → PAIR(X1, X2)
PAIR(X1, mark(X2)) → PAIR(X1, X2)
PAIR(active(X1), X2) → PAIR(X1, X2)
PAIR(X1, active(X2)) → PAIR(X1, X2)
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)
U711(mark(X1), X2) → U711(X1, X2)
U711(X1, mark(X2)) → U711(X1, X2)
U711(active(X1), X2) → U711(X1, X2)
U711(X1, active(X2)) → U711(X1, X2)
U721(mark(X1), X2) → U721(X1, X2)
U721(X1, mark(X2)) → U721(X1, X2)
U721(active(X1), X2) → U721(X1, X2)
U721(X1, active(X2)) → U721(X1, X2)
U811(mark(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, mark(X2), X3) → U811(X1, X2, X3)
U811(X1, X2, mark(X3)) → U811(X1, X2, X3)
U811(active(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, active(X2), X3) → U811(X1, X2, X3)
U811(X1, X2, active(X3)) → U811(X1, X2, X3)
U821(mark(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, mark(X2), X3) → U821(X1, X2, X3)
U821(X1, X2, mark(X3)) → U821(X1, X2, X3)
U821(active(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, active(X2), X3) → U821(X1, X2, X3)
U821(X1, X2, active(X3)) → U821(X1, X2, X3)
FST(mark(X)) → FST(X)
FST(active(X)) → FST(X)
NATSFROM(mark(X)) → NATSFROM(X)
NATSFROM(active(X)) → NATSFROM(X)
S(mark(X)) → S(X)
S(active(X)) → S(X)
SEL(mark(X1), X2) → SEL(X1, X2)
SEL(X1, mark(X2)) → SEL(X1, X2)
SEL(active(X1), X2) → SEL(X1, X2)
SEL(X1, active(X2)) → SEL(X1, X2)
TAIL(mark(X)) → TAIL(X)
TAIL(active(X)) → TAIL(X)
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)

The TRS R consists of the following rules:

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

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 31 SCCs with 64 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(6) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAKE(active(X1), X2) → TAKE(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
TAKE(x1, x2)  =  TAKE(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > TAKE1

Status:
TAKE1: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(7) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(8) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAKE(mark(X1), X2) → TAKE(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
TAKE(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(9) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(10) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAKE(X1, mark(X2)) → TAKE(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
TAKE(x1, x2)  =  TAKE(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > TAKE2

Status:
TAKE2: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(11) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(12) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAKE(X1, active(X2)) → TAKE(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > TAKE2

Status:
TAKE2: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(13) Obligation:

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

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

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

(14) PisEmptyProof (EQUIVALENT transformation)

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

(15) TRUE

(16) Obligation:

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

TAIL(active(X)) → TAIL(X)
TAIL(mark(X)) → TAIL(X)

The TRS R consists of the following rules:

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

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

(17) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAIL(active(X)) → TAIL(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
TAIL(x1)  =  TAIL(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
active1 > TAIL1

Status:
TAIL1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(18) Obligation:

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

TAIL(mark(X)) → TAIL(X)

The TRS R consists of the following rules:

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

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

(19) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAIL(mark(X)) → TAIL(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
mark1 > TAIL1

Status:
TAIL1: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(20) Obligation:

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

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

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

(21) PisEmptyProof (EQUIVALENT transformation)

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

(22) TRUE

(23) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(24) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SEL(active(X1), X2) → SEL(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
SEL(x1, x2)  =  SEL(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > SEL1

Status:
SEL1: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(25) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(26) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SEL(mark(X1), X2) → SEL(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
SEL(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(27) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(28) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SEL(X1, mark(X2)) → SEL(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
SEL(x1, x2)  =  SEL(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > SEL2

Status:
SEL2: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(29) Obligation:

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

SEL(X1, active(X2)) → SEL(X1, X2)

The TRS R consists of the following rules:

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

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

(30) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SEL(X1, active(X2)) → SEL(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > SEL2

Status:
SEL2: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(31) Obligation:

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

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

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

(32) PisEmptyProof (EQUIVALENT transformation)

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

(33) TRUE

(34) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(35) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


S(active(X)) → S(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
S(x1)  =  S(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
active1 > S1

Status:
S1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(36) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(37) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


S(mark(X)) → S(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
mark1 > S1

Status:
S1: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(38) Obligation:

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

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

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

(39) PisEmptyProof (EQUIVALENT transformation)

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

(40) TRUE

(41) Obligation:

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

NATSFROM(active(X)) → NATSFROM(X)
NATSFROM(mark(X)) → NATSFROM(X)

The TRS R consists of the following rules:

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

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

(42) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


NATSFROM(active(X)) → NATSFROM(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
NATSFROM(x1)  =  NATSFROM(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
active1 > NATSFROM1

Status:
NATSFROM1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(43) Obligation:

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

NATSFROM(mark(X)) → NATSFROM(X)

The TRS R consists of the following rules:

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

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

(44) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


NATSFROM(mark(X)) → NATSFROM(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
mark1 > NATSFROM1

Status:
NATSFROM1: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(45) Obligation:

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

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

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

(46) PisEmptyProof (EQUIVALENT transformation)

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

(47) TRUE

(48) Obligation:

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

FST(active(X)) → FST(X)
FST(mark(X)) → FST(X)

The TRS R consists of the following rules:

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

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

(49) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


FST(active(X)) → FST(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
FST(x1)  =  FST(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
active1 > FST1

Status:
FST1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(50) Obligation:

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

FST(mark(X)) → FST(X)

The TRS R consists of the following rules:

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

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

(51) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


FST(mark(X)) → FST(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
mark1 > FST1

Status:
FST1: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(52) Obligation:

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

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

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

(53) PisEmptyProof (EQUIVALENT transformation)

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

(54) TRUE

(55) Obligation:

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

U821(X1, mark(X2), X3) → U821(X1, X2, X3)
U821(mark(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, X2, mark(X3)) → U821(X1, X2, X3)
U821(active(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, active(X2), X3) → U821(X1, X2, X3)
U821(X1, X2, active(X3)) → U821(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(56) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U821(X1, mark(X2), X3) → U821(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2, x3)  =  U821(x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U82^11

Status:
U82^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(57) Obligation:

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

U821(mark(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, X2, mark(X3)) → U821(X1, X2, X3)
U821(active(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, active(X2), X3) → U821(X1, X2, X3)
U821(X1, X2, active(X3)) → U821(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(58) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U821(X1, active(X2), X3) → U821(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2, x3)  =  U821(x2)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U82^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(59) Obligation:

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

U821(mark(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, X2, mark(X3)) → U821(X1, X2, X3)
U821(active(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, X2, active(X3)) → U821(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(60) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U821(active(X1), X2, X3) → U821(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2, x3)  =  U821(x1, x2)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U82^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(61) Obligation:

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

U821(mark(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, X2, mark(X3)) → U821(X1, X2, X3)
U821(X1, X2, active(X3)) → U821(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(62) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U821(X1, X2, active(X3)) → U821(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2, x3)  =  U821(x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U82^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(63) Obligation:

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

U821(mark(X1), X2, X3) → U821(X1, X2, X3)
U821(X1, X2, mark(X3)) → U821(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(64) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U821(mark(X1), X2, X3) → U821(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2, x3)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(65) Obligation:

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

U821(X1, X2, mark(X3)) → U821(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(66) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U821(X1, X2, mark(X3)) → U821(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2, x3)  =  U821(x3)
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U82^11

Status:
U82^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(67) Obligation:

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

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

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

(68) PisEmptyProof (EQUIVALENT transformation)

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

(69) TRUE

(70) Obligation:

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

U811(X1, mark(X2), X3) → U811(X1, X2, X3)
U811(mark(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, X2, mark(X3)) → U811(X1, X2, X3)
U811(active(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, active(X2), X3) → U811(X1, X2, X3)
U811(X1, X2, active(X3)) → U811(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(71) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U811(X1, mark(X2), X3) → U811(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3)  =  U811(x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U81^11

Status:
U81^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(72) Obligation:

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

U811(mark(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, X2, mark(X3)) → U811(X1, X2, X3)
U811(active(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, active(X2), X3) → U811(X1, X2, X3)
U811(X1, X2, active(X3)) → U811(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(73) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U811(X1, active(X2), X3) → U811(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3)  =  U811(x2)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U81^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(74) Obligation:

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

U811(mark(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, X2, mark(X3)) → U811(X1, X2, X3)
U811(active(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, X2, active(X3)) → U811(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(75) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U811(active(X1), X2, X3) → U811(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3)  =  U811(x1, x2)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U81^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(76) Obligation:

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

U811(mark(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, X2, mark(X3)) → U811(X1, X2, X3)
U811(X1, X2, active(X3)) → U811(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(77) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U811(X1, X2, active(X3)) → U811(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3)  =  U811(x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U81^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(78) Obligation:

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

U811(mark(X1), X2, X3) → U811(X1, X2, X3)
U811(X1, X2, mark(X3)) → U811(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(79) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U811(mark(X1), X2, X3) → U811(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(80) Obligation:

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

U811(X1, X2, mark(X3)) → U811(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(81) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U811(X1, X2, mark(X3)) → U811(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3)  =  U811(x3)
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U81^11

Status:
U81^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(82) Obligation:

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

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

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

(83) PisEmptyProof (EQUIVALENT transformation)

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

(84) TRUE

(85) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(86) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U721(active(X1), X2) → U721(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U721(x1, x2)  =  U721(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U72^11

Status:
U72^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(87) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(88) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U721(mark(X1), X2) → U721(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U721(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(89) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(90) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U721(X1, mark(X2)) → U721(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U721(x1, x2)  =  U721(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U72^12

Status:
U72^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(91) Obligation:

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

U721(X1, active(X2)) → U721(X1, X2)

The TRS R consists of the following rules:

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

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

(92) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U721(X1, active(X2)) → U721(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U72^12

Status:
U72^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(93) Obligation:

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

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

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

(94) PisEmptyProof (EQUIVALENT transformation)

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

(95) TRUE

(96) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(97) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U711(active(X1), X2) → U711(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U711(x1, x2)  =  U711(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U71^11

Status:
U71^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(98) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(99) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U711(mark(X1), X2) → U711(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U711(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(100) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(101) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U711(X1, mark(X2)) → U711(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U711(x1, x2)  =  U711(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U71^12

Status:
U71^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(102) Obligation:

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

U711(X1, active(X2)) → U711(X1, X2)

The TRS R consists of the following rules:

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

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

(103) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U711(X1, active(X2)) → U711(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U71^12

Status:
U71^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(104) Obligation:

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

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

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

(105) PisEmptyProof (EQUIVALENT transformation)

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

(106) TRUE

(107) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(108) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


CONS(active(X1), X2) → CONS(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
CONS(x1, x2)  =  CONS(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > CONS1

Status:
CONS1: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(109) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(110) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


CONS(mark(X1), X2) → CONS(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
CONS(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(111) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(112) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


CONS(X1, mark(X2)) → CONS(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
CONS(x1, x2)  =  CONS(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > CONS2

Status:
CONS2: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(113) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(114) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


CONS(X1, active(X2)) → CONS(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > CONS2

Status:
CONS2: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(115) Obligation:

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

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

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

(116) PisEmptyProof (EQUIVALENT transformation)

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

(117) TRUE

(118) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(119) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PAIR(active(X1), X2) → PAIR(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PAIR(x1, x2)  =  PAIR(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > PAIR1

Status:
PAIR1: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(120) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(121) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PAIR(mark(X1), X2) → PAIR(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PAIR(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(122) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(123) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PAIR(X1, mark(X2)) → PAIR(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PAIR(x1, x2)  =  PAIR(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > PAIR2

Status:
PAIR2: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(124) Obligation:

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

PAIR(X1, active(X2)) → PAIR(X1, X2)

The TRS R consists of the following rules:

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

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

(125) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PAIR(X1, active(X2)) → PAIR(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > PAIR2

Status:
PAIR2: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(126) Obligation:

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

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

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

(127) PisEmptyProof (EQUIVALENT transformation)

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

(128) TRUE

(129) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(130) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U641(active(X1), X2) → U641(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U641(x1, x2)  =  U641(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U64^11

Status:
U64^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(131) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(132) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U641(mark(X1), X2) → U641(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U641(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(133) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(134) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U641(X1, mark(X2)) → U641(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U641(x1, x2)  =  U641(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U64^12

Status:
U64^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(135) Obligation:

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

U641(X1, active(X2)) → U641(X1, X2)

The TRS R consists of the following rules:

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

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

(136) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U641(X1, active(X2)) → U641(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U64^12

Status:
U64^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(137) Obligation:

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

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

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

(138) PisEmptyProof (EQUIVALENT transformation)

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

(139) TRUE

(140) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(141) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(X1, X2, active(X3), X4) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  x3
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(142) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(143) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(X1, X2, mark(X3), X4) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  U631(x3)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U63^11
active1 > U63^11

Status:
U63^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(144) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(145) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(X1, X2, X3, active(X4)) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  U631(x4)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U63^11

Status:
U63^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(146) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(147) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(X1, X2, X3, mark(X4)) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  U631(x4)
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U63^11: [1]
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(148) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(149) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(X1, mark(X2), X3, X4) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  U631(x2, x4)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U63^12: [2,1]
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(150) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(151) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(active(X1), X2, X3, X4) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  U631(x1, x3, x4)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U63^13

Status:
U63^13: [3,1,2]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(152) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(153) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(X1, active(X2), X3, X4) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  U631(x2, x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U63^12

Status:
U63^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(154) Obligation:

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

U631(mark(X1), X2, X3, X4) → U631(X1, X2, X3, X4)

The TRS R consists of the following rules:

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

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

(155) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U631(mark(X1), X2, X3, X4) → U631(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U631(x1, x2, x3, x4)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(156) Obligation:

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

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

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

(157) PisEmptyProof (EQUIVALENT transformation)

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

(158) TRUE

(159) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(160) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(X1, X2, active(X3), X4) → U621(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U621(x1, x2, x3, x4)  =  x3
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(161) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(162) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(X1, X2, mark(X3), X4) → U621(X1, X2, X3, X4)
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(x3)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U62^11
active1 > U62^11

Status:
U62^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(163) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(164) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(X1, X2, X3, active(X4)) → U621(X1, X2, X3, X4)
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(x4)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U62^11

Status:
U62^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(165) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(166) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(X1, X2, X3, mark(X4)) → U621(X1, X2, X3, X4)
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(x4)
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U62^11: [1]
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(167) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(168) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(X1, mark(X2), X3, X4) → U621(X1, X2, X3, X4)
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, x4)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U62^12: [2,1]
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(169) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(170) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(active(X1), X2, X3, X4) → U621(X1, X2, X3, X4)
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(x1, x3, x4)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U62^13

Status:
U62^13: [3,1,2]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(171) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(172) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(X1, active(X2), X3, X4) → U621(X1, X2, X3, X4)
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, x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U62^12

Status:
U62^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(173) Obligation:

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

U621(mark(X1), X2, X3, X4) → U621(X1, X2, X3, X4)

The TRS R consists of the following rules:

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

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

(174) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U621(mark(X1), X2, X3, X4) → U621(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U621(x1, x2, x3, x4)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(175) Obligation:

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

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

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

(176) PisEmptyProof (EQUIVALENT transformation)

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

(177) TRUE

(178) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(179) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(X1, X2, active(X3), X4) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  x3
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(180) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(181) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(X1, X2, mark(X3), X4) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  U611(x3)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U61^11
active1 > U61^11

Status:
U61^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(182) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(183) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(X1, X2, X3, active(X4)) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  U611(x4)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U61^11

Status:
U61^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(184) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(185) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(X1, X2, X3, mark(X4)) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  U611(x4)
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U61^11: [1]
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(186) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(187) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(X1, mark(X2), X3, X4) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  U611(x2, x4)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U61^12: [2,1]
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(188) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(189) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(active(X1), X2, X3, X4) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  U611(x1, x3, x4)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U61^13

Status:
U61^13: [3,1,2]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(190) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(191) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(X1, active(X2), X3, X4) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  U611(x2, x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U61^12

Status:
U61^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(192) Obligation:

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

U611(mark(X1), X2, X3, X4) → U611(X1, X2, X3, X4)

The TRS R consists of the following rules:

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

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

(193) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U611(mark(X1), X2, X3, X4) → U611(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2, x3, x4)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(194) Obligation:

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

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

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

(195) PisEmptyProof (EQUIVALENT transformation)

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

(196) TRUE

(197) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(198) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U521(active(X1), X2) → U521(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U521(x1, x2)  =  U521(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U52^11

Status:
U52^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(199) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(200) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U521(mark(X1), X2) → U521(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U521(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(201) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(202) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U521(X1, mark(X2)) → U521(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U521(x1, x2)  =  U521(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U52^12

Status:
U52^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(203) Obligation:

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

U521(X1, active(X2)) → U521(X1, X2)

The TRS R consists of the following rules:

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

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

(204) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U521(X1, active(X2)) → U521(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U52^12

Status:
U52^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(205) Obligation:

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

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

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

(206) PisEmptyProof (EQUIVALENT transformation)

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

(207) TRUE

(208) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(209) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U511(active(X1), X2) → U511(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U511(x1, x2)  =  U511(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U51^11

Status:
U51^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(210) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(211) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U511(mark(X1), X2) → U511(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U511(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(212) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(213) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U511(X1, mark(X2)) → U511(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U511(x1, x2)  =  U511(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U51^12

Status:
U51^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(214) Obligation:

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

U511(X1, active(X2)) → U511(X1, X2)

The TRS R consists of the following rules:

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

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

(215) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U511(X1, active(X2)) → U511(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U51^12

Status:
U51^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(216) Obligation:

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

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

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

(217) PisEmptyProof (EQUIVALENT transformation)

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

(218) TRUE

(219) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(220) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AFTERNTH(active(X1), X2) → AFTERNTH(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
AFTERNTH(x1, x2)  =  AFTERNTH(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > AFTERNTH1

Status:
AFTERNTH1: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(221) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(222) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
AFTERNTH(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(223) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(224) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
AFTERNTH(x1, x2)  =  AFTERNTH(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > AFTERNTH2

Status:
AFTERNTH2: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(225) Obligation:

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

AFTERNTH(X1, active(X2)) → AFTERNTH(X1, X2)

The TRS R consists of the following rules:

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

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

(226) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AFTERNTH(X1, active(X2)) → AFTERNTH(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > AFTERNTH2

Status:
AFTERNTH2: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(227) Obligation:

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

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

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

(228) PisEmptyProof (EQUIVALENT transformation)

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

(229) TRUE

(230) Obligation:

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

HEAD(active(X)) → HEAD(X)
HEAD(mark(X)) → HEAD(X)

The TRS R consists of the following rules:

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

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

(231) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


HEAD(active(X)) → HEAD(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
HEAD(x1)  =  HEAD(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
active1 > HEAD1

Status:
HEAD1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(232) Obligation:

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

HEAD(mark(X)) → HEAD(X)

The TRS R consists of the following rules:

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

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

(233) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


HEAD(mark(X)) → HEAD(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
mark1 > HEAD1

Status:
HEAD1: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(234) Obligation:

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

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

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

(235) PisEmptyProof (EQUIVALENT transformation)

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

(236) TRUE

(237) Obligation:

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

U421(X1, mark(X2), X3) → U421(X1, X2, X3)
U421(mark(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, X2, mark(X3)) → U421(X1, X2, X3)
U421(active(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, active(X2), X3) → U421(X1, X2, X3)
U421(X1, X2, active(X3)) → U421(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(238) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U421(X1, mark(X2), X3) → U421(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U421(x1, x2, x3)  =  U421(x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U42^11

Status:
U42^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(239) Obligation:

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

U421(mark(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, X2, mark(X3)) → U421(X1, X2, X3)
U421(active(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, active(X2), X3) → U421(X1, X2, X3)
U421(X1, X2, active(X3)) → U421(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(240) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U421(X1, active(X2), X3) → U421(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U421(x1, x2, x3)  =  U421(x2)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U42^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(241) Obligation:

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

U421(mark(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, X2, mark(X3)) → U421(X1, X2, X3)
U421(active(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, X2, active(X3)) → U421(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(242) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U421(active(X1), X2, X3) → U421(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U421(x1, x2, x3)  =  U421(x1, x2)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U42^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(243) Obligation:

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

U421(mark(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, X2, mark(X3)) → U421(X1, X2, X3)
U421(X1, X2, active(X3)) → U421(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(244) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U421(X1, X2, active(X3)) → U421(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U421(x1, x2, x3)  =  U421(x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U42^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(245) Obligation:

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

U421(mark(X1), X2, X3) → U421(X1, X2, X3)
U421(X1, X2, mark(X3)) → U421(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(246) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U421(mark(X1), X2, X3) → U421(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U421(x1, x2, x3)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(247) Obligation:

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

U421(X1, X2, mark(X3)) → U421(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(248) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U421(X1, X2, mark(X3)) → U421(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U421(x1, x2, x3)  =  U421(x3)
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U42^11

Status:
U42^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(249) Obligation:

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

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

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

(250) PisEmptyProof (EQUIVALENT transformation)

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

(251) TRUE

(252) Obligation:

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

U411(X1, mark(X2), X3) → U411(X1, X2, X3)
U411(mark(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, X2, mark(X3)) → U411(X1, X2, X3)
U411(active(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, active(X2), X3) → U411(X1, X2, X3)
U411(X1, X2, active(X3)) → U411(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(253) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U411(X1, mark(X2), X3) → U411(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2, x3)  =  U411(x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U41^11

Status:
U41^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(254) Obligation:

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

U411(mark(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, X2, mark(X3)) → U411(X1, X2, X3)
U411(active(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, active(X2), X3) → U411(X1, X2, X3)
U411(X1, X2, active(X3)) → U411(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(255) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U411(X1, active(X2), X3) → U411(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2, x3)  =  U411(x2)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U41^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(256) Obligation:

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

U411(mark(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, X2, mark(X3)) → U411(X1, X2, X3)
U411(active(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, X2, active(X3)) → U411(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(257) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U411(active(X1), X2, X3) → U411(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2, x3)  =  U411(x1, x2)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U41^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(258) Obligation:

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

U411(mark(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, X2, mark(X3)) → U411(X1, X2, X3)
U411(X1, X2, active(X3)) → U411(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(259) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U411(X1, X2, active(X3)) → U411(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2, x3)  =  U411(x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U41^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(260) Obligation:

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

U411(mark(X1), X2, X3) → U411(X1, X2, X3)
U411(X1, X2, mark(X3)) → U411(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(261) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U411(mark(X1), X2, X3) → U411(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2, x3)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(262) Obligation:

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

U411(X1, X2, mark(X3)) → U411(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(263) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U411(X1, X2, mark(X3)) → U411(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2, x3)  =  U411(x3)
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U41^11

Status:
U41^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(264) Obligation:

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

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

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

(265) PisEmptyProof (EQUIVALENT transformation)

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

(266) TRUE

(267) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(268) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U321(active(X1), X2) → U321(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U321(x1, x2)  =  U321(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U32^11

Status:
U32^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(269) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(270) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U321(mark(X1), X2) → U321(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U321(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(271) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(272) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U321(X1, mark(X2)) → U321(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U321(x1, x2)  =  U321(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U32^12

Status:
U32^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(273) Obligation:

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

U321(X1, active(X2)) → U321(X1, X2)

The TRS R consists of the following rules:

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

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

(274) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U321(X1, active(X2)) → U321(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U32^12

Status:
U32^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(275) Obligation:

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

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

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

(276) PisEmptyProof (EQUIVALENT transformation)

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

(277) TRUE

(278) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(279) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U311(active(X1), X2) → U311(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U311(x1, x2)  =  U311(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U31^11

Status:
U31^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(280) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(281) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U311(mark(X1), X2) → U311(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U311(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(282) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(283) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U311(X1, mark(X2)) → U311(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U311(x1, x2)  =  U311(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U31^12

Status:
U31^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(284) Obligation:

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

U311(X1, active(X2)) → U311(X1, X2)

The TRS R consists of the following rules:

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

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

(285) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U311(X1, active(X2)) → U311(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U31^12

Status:
U31^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(286) Obligation:

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

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

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

(287) PisEmptyProof (EQUIVALENT transformation)

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

(288) TRUE

(289) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(290) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U221(active(X1), X2) → U221(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U221(x1, x2)  =  U221(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U22^11

Status:
U22^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(291) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(292) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U221(mark(X1), X2) → U221(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U221(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(293) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(294) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U221(X1, mark(X2)) → U221(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U221(x1, x2)  =  U221(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U22^12

Status:
U22^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(295) Obligation:

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

U221(X1, active(X2)) → U221(X1, X2)

The TRS R consists of the following rules:

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

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

(296) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U221(X1, active(X2)) → U221(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U22^12

Status:
U22^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(297) Obligation:

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

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

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

(298) PisEmptyProof (EQUIVALENT transformation)

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

(299) TRUE

(300) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(301) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U211(active(X1), X2) → U211(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U211(x1, x2)  =  U211(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > U21^11

Status:
U21^11: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(302) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(303) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U211(mark(X1), X2) → U211(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U211(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(304) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(305) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U211(X1, mark(X2)) → U211(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U211(x1, x2)  =  U211(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U21^12

Status:
U21^12: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(306) Obligation:

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

U211(X1, active(X2)) → U211(X1, X2)

The TRS R consists of the following rules:

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

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

(307) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U211(X1, active(X2)) → U211(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > U21^12

Status:
U21^12: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(308) Obligation:

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

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

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

(309) PisEmptyProof (EQUIVALENT transformation)

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

(310) TRUE

(311) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(312) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SPLITAT(active(X1), X2) → SPLITAT(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
SPLITAT(x1, x2)  =  SPLITAT(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
active1 > SPLITAT1

Status:
SPLITAT1: [1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(313) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(314) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
SPLITAT(x1, x2)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset
active: multiset

The following usable rules [FROCOS05] were oriented: none

(315) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(316) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
SPLITAT(x1, x2)  =  SPLITAT(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > SPLITAT2

Status:
SPLITAT2: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(317) Obligation:

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

SPLITAT(X1, active(X2)) → SPLITAT(X1, X2)

The TRS R consists of the following rules:

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

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

(318) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SPLITAT(X1, active(X2)) → SPLITAT(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
active1 > SPLITAT2

Status:
SPLITAT2: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(319) Obligation:

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

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

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

(320) PisEmptyProof (EQUIVALENT transformation)

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

(321) TRUE

(322) Obligation:

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

SND(active(X)) → SND(X)
SND(mark(X)) → SND(X)

The TRS R consists of the following rules:

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

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

(323) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SND(active(X)) → SND(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
SND(x1)  =  SND(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
active1 > SND1

Status:
SND1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(324) Obligation:

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

SND(mark(X)) → SND(X)

The TRS R consists of the following rules:

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

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

(325) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SND(mark(X)) → SND(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Recursive path order with status [RPO].
Precedence:
mark1 > SND1

Status:
SND1: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(326) Obligation:

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

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

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

(327) PisEmptyProof (EQUIVALENT transformation)

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

(328) TRUE

(329) Obligation:

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

U121(X1, mark(X2), X3) → U121(X1, X2, X3)
U121(mark(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, X2, mark(X3)) → U121(X1, X2, X3)
U121(active(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, active(X2), X3) → U121(X1, X2, X3)
U121(X1, X2, active(X3)) → U121(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(330) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U121(X1, mark(X2), X3) → U121(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U121(x1, x2, x3)  =  U121(x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U12^11

Status:
U12^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(331) Obligation:

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

U121(mark(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, X2, mark(X3)) → U121(X1, X2, X3)
U121(active(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, active(X2), X3) → U121(X1, X2, X3)
U121(X1, X2, active(X3)) → U121(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(332) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U121(X1, active(X2), X3) → U121(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U121(x1, x2, x3)  =  U121(x2)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U12^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(333) Obligation:

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

U121(mark(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, X2, mark(X3)) → U121(X1, X2, X3)
U121(active(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, X2, active(X3)) → U121(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(334) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U121(active(X1), X2, X3) → U121(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U121(x1, x2, x3)  =  U121(x1, x2)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U12^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(335) Obligation:

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

U121(mark(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, X2, mark(X3)) → U121(X1, X2, X3)
U121(X1, X2, active(X3)) → U121(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(336) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U121(X1, X2, active(X3)) → U121(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U121(x1, x2, x3)  =  U121(x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U12^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(337) Obligation:

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

U121(mark(X1), X2, X3) → U121(X1, X2, X3)
U121(X1, X2, mark(X3)) → U121(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(338) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U121(mark(X1), X2, X3) → U121(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U121(x1, x2, x3)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(339) Obligation:

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

U121(X1, X2, mark(X3)) → U121(X1, X2, X3)

The TRS R consists of the following rules:

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

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

(340) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U121(X1, X2, mark(X3)) → U121(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U121(x1, x2, x3)  =  U121(x3)
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U12^11

Status:
U12^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(341) Obligation:

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

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

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

(342) PisEmptyProof (EQUIVALENT transformation)

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

(343) TRUE

(344) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(345) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U111(X1, mark(X2), X3) → U111(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U111(x1, x2, x3)  =  U111(x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Recursive path order with status [RPO].
Precedence:
mark1 > U11^11

Status:
U11^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(346) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(347) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U111(X1, active(X2), X3) → U111(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U111(x1, x2, x3)  =  U111(x2)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U11^11: multiset
mark1: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(348) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(349) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U111(active(X1), X2, X3) → U111(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U111(x1, x2, x3)  =  U111(x1, x2)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U11^12: [2,1]
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(350) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(351) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U111(X1, X2, active(X3)) → U111(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U111(x1, x2, x3)  =  U111(x3)
mark(x1)  =  x1
active(x1)  =  active(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
U11^11: multiset
active1: multiset

The following usable rules [FROCOS05] were oriented: none

(352) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(353) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U111(mark(X1), X2, X3) → U111(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U111(x1, x2, x3)  =  x1
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
trivial

Status:
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(354) Obligation:

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

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

The TRS R consists of the following rules:

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

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

(355) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U111(X1, X2, mark(X3)) → U111(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U111(x1, x2, x3)  =  U111(x3)
mark(x1)  =  mark(x1)

Recursive path order with status [RPO].
Precedence:
mark1 > U11^11

Status:
U11^11: multiset
mark1: multiset

The following usable rules [FROCOS05] were oriented: none

(356) Obligation:

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

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

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

(357) PisEmptyProof (EQUIVALENT transformation)

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

(358) TRUE

(359) Obligation:

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

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

The TRS R consists of the following rules:

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

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