(0) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

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

(2) Obligation:

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

ACTIVE(U101(tt, N, XS)) → FST(splitAt(N, XS))
ACTIVE(U101(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(U11(tt, N, XS)) → SND(splitAt(N, XS))
ACTIVE(U11(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(U41(tt, N)) → CONS(N, natsFrom(s(N)))
ACTIVE(U41(tt, N)) → NATSFROM(s(N))
ACTIVE(U41(tt, N)) → S(N)
ACTIVE(U51(tt, N, XS)) → HEAD(afterNth(N, XS))
ACTIVE(U51(tt, N, XS)) → AFTERNTH(N, XS)
ACTIVE(U71(tt, XS)) → PAIR(nil, XS)
ACTIVE(U81(tt, N, X, XS)) → U821(splitAt(N, XS), X)
ACTIVE(U81(tt, N, X, XS)) → SPLITAT(N, XS)
ACTIVE(U82(pair(YS, ZS), X)) → PAIR(cons(X, YS), ZS)
ACTIVE(U82(pair(YS, ZS), X)) → CONS(X, YS)
ACTIVE(afterNth(N, XS)) → U111(and(isNatural(N), isLNat(XS)), N, XS)
ACTIVE(afterNth(N, XS)) → AND(isNatural(N), isLNat(XS))
ACTIVE(afterNth(N, XS)) → ISNATURAL(N)
ACTIVE(afterNth(N, XS)) → ISLNAT(XS)
ACTIVE(fst(pair(X, Y))) → U211(and(isLNat(X), isLNat(Y)), X)
ACTIVE(fst(pair(X, Y))) → AND(isLNat(X), isLNat(Y))
ACTIVE(fst(pair(X, Y))) → ISLNAT(X)
ACTIVE(fst(pair(X, Y))) → ISLNAT(Y)
ACTIVE(head(cons(N, XS))) → U311(and(isNatural(N), isLNat(XS)), N)
ACTIVE(head(cons(N, XS))) → AND(isNatural(N), isLNat(XS))
ACTIVE(head(cons(N, XS))) → ISNATURAL(N)
ACTIVE(head(cons(N, XS))) → ISLNAT(XS)
ACTIVE(isLNat(afterNth(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(isLNat(afterNth(V1, V2))) → ISNATURAL(V1)
ACTIVE(isLNat(afterNth(V1, V2))) → ISLNAT(V2)
ACTIVE(isLNat(cons(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(isLNat(cons(V1, V2))) → ISNATURAL(V1)
ACTIVE(isLNat(cons(V1, V2))) → ISLNAT(V2)
ACTIVE(isLNat(fst(V1))) → ISPLNAT(V1)
ACTIVE(isLNat(natsFrom(V1))) → ISNATURAL(V1)
ACTIVE(isLNat(snd(V1))) → ISPLNAT(V1)
ACTIVE(isLNat(tail(V1))) → ISLNAT(V1)
ACTIVE(isLNat(take(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(isLNat(take(V1, V2))) → ISNATURAL(V1)
ACTIVE(isLNat(take(V1, V2))) → ISLNAT(V2)
ACTIVE(isNatural(head(V1))) → ISLNAT(V1)
ACTIVE(isNatural(s(V1))) → ISNATURAL(V1)
ACTIVE(isNatural(sel(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(isNatural(sel(V1, V2))) → ISNATURAL(V1)
ACTIVE(isNatural(sel(V1, V2))) → ISLNAT(V2)
ACTIVE(isPLNat(pair(V1, V2))) → AND(isLNat(V1), isLNat(V2))
ACTIVE(isPLNat(pair(V1, V2))) → ISLNAT(V1)
ACTIVE(isPLNat(pair(V1, V2))) → ISLNAT(V2)
ACTIVE(isPLNat(splitAt(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(isPLNat(splitAt(V1, V2))) → ISNATURAL(V1)
ACTIVE(isPLNat(splitAt(V1, V2))) → ISLNAT(V2)
ACTIVE(natsFrom(N)) → U411(isNatural(N), N)
ACTIVE(natsFrom(N)) → ISNATURAL(N)
ACTIVE(sel(N, XS)) → U511(and(isNatural(N), isLNat(XS)), N, XS)
ACTIVE(sel(N, XS)) → AND(isNatural(N), isLNat(XS))
ACTIVE(sel(N, XS)) → ISNATURAL(N)
ACTIVE(sel(N, XS)) → ISLNAT(XS)
ACTIVE(snd(pair(X, Y))) → U611(and(isLNat(X), isLNat(Y)), Y)
ACTIVE(snd(pair(X, Y))) → AND(isLNat(X), isLNat(Y))
ACTIVE(snd(pair(X, Y))) → ISLNAT(X)
ACTIVE(snd(pair(X, Y))) → ISLNAT(Y)
ACTIVE(splitAt(0, XS)) → U711(isLNat(XS), XS)
ACTIVE(splitAt(0, XS)) → ISLNAT(XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → U811(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(N), and(isNatural(X), isLNat(XS)))
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(N)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(X), isLNat(XS))
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(X)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISLNAT(XS)
ACTIVE(tail(cons(N, XS))) → U911(and(isNatural(N), isLNat(XS)), XS)
ACTIVE(tail(cons(N, XS))) → AND(isNatural(N), isLNat(XS))
ACTIVE(tail(cons(N, XS))) → ISNATURAL(N)
ACTIVE(tail(cons(N, XS))) → ISLNAT(XS)
ACTIVE(take(N, XS)) → U1011(and(isNatural(N), isLNat(XS)), N, XS)
ACTIVE(take(N, XS)) → AND(isNatural(N), isLNat(XS))
ACTIVE(take(N, XS)) → ISNATURAL(N)
ACTIVE(take(N, XS)) → ISLNAT(XS)
ACTIVE(U101(X1, X2, X3)) → U1011(active(X1), X2, X3)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(fst(X)) → FST(active(X))
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → SPLITAT(active(X1), X2)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → SPLITAT(X1, active(X2))
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U11(X1, X2, X3)) → U111(active(X1), X2, X3)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(snd(X)) → SND(active(X))
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(U21(X1, X2)) → U211(active(X1), X2)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(U31(X1, X2)) → U311(active(X1), X2)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → U411(active(X1), X2)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → CONS(active(X1), X2)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(natsFrom(X)) → NATSFROM(active(X))
ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(s(X)) → S(active(X))
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2, X3)) → U511(active(X1), X2, X3)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(head(X)) → HEAD(active(X))
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(active(X1), X2)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(X1, active(X2))
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U61(X1, X2)) → U611(active(X1), X2)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U71(X1, X2)) → U711(active(X1), X2)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → PAIR(active(X1), X2)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → PAIR(X1, active(X2))
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(U81(X1, X2, X3, X4)) → U811(active(X1), X2, X3, X4)
ACTIVE(U81(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U82(X1, X2)) → U821(active(X1), X2)
ACTIVE(U82(X1, X2)) → ACTIVE(X1)
ACTIVE(U91(X1, X2)) → U911(active(X1), X2)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(and(X1, X2)) → AND(active(X1), X2)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
ACTIVE(tail(X)) → TAIL(active(X))
ACTIVE(tail(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → TAKE(active(X1), X2)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → TAKE(X1, active(X2))
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(sel(X1, X2)) → SEL(active(X1), X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → SEL(X1, active(X2))
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
FST(mark(X)) → FST(X)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
U111(mark(X1), X2, X3) → U111(X1, X2, X3)
SND(mark(X)) → SND(X)
U211(mark(X1), X2) → U211(X1, X2)
U311(mark(X1), X2) → U311(X1, X2)
U411(mark(X1), X2) → U411(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
NATSFROM(mark(X)) → NATSFROM(X)
S(mark(X)) → S(X)
U511(mark(X1), X2, X3) → U511(X1, X2, X3)
HEAD(mark(X)) → HEAD(X)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
U611(mark(X1), X2) → U611(X1, X2)
U711(mark(X1), X2) → U711(X1, X2)
PAIR(mark(X1), X2) → PAIR(X1, X2)
PAIR(X1, mark(X2)) → PAIR(X1, X2)
U811(mark(X1), X2, X3, X4) → U811(X1, X2, X3, X4)
U821(mark(X1), X2) → U821(X1, X2)
U911(mark(X1), X2) → U911(X1, X2)
AND(mark(X1), X2) → AND(X1, X2)
TAIL(mark(X)) → TAIL(X)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
SEL(mark(X1), X2) → SEL(X1, X2)
SEL(X1, mark(X2)) → SEL(X1, X2)
PROPER(U101(X1, X2, X3)) → U1011(proper(X1), proper(X2), proper(X3))
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X2)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(fst(X)) → FST(proper(X))
PROPER(fst(X)) → PROPER(X)
PROPER(splitAt(X1, X2)) → SPLITAT(proper(X1), proper(X2))
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → U111(proper(X1), proper(X2), proper(X3))
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(snd(X)) → SND(proper(X))
PROPER(snd(X)) → PROPER(X)
PROPER(U21(X1, X2)) → U211(proper(X1), proper(X2))
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(U31(X1, X2)) → U311(proper(X1), proper(X2))
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2)) → U411(proper(X1), proper(X2))
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → CONS(proper(X1), proper(X2))
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(natsFrom(X)) → NATSFROM(proper(X))
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → S(proper(X))
PROPER(s(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → U511(proper(X1), proper(X2), proper(X3))
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(head(X)) → HEAD(proper(X))
PROPER(head(X)) → PROPER(X)
PROPER(afterNth(X1, X2)) → AFTERNTH(proper(X1), proper(X2))
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U61(X1, X2)) → U611(proper(X1), proper(X2))
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(U71(X1, X2)) → U711(proper(X1), proper(X2))
PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PAIR(proper(X1), proper(X2))
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → U811(proper(X1), proper(X2), proper(X3), proper(X4))
PROPER(U81(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U82(X1, X2)) → U821(proper(X1), proper(X2))
PROPER(U82(X1, X2)) → PROPER(X1)
PROPER(U82(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2)) → U911(proper(X1), proper(X2))
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(and(X1, X2)) → AND(proper(X1), proper(X2))
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → ISNATURAL(proper(X))
PROPER(isNatural(X)) → PROPER(X)
PROPER(isLNat(X)) → ISLNAT(proper(X))
PROPER(isLNat(X)) → PROPER(X)
PROPER(isPLNat(X)) → ISPLNAT(proper(X))
PROPER(isPLNat(X)) → PROPER(X)
PROPER(tail(X)) → TAIL(proper(X))
PROPER(tail(X)) → PROPER(X)
PROPER(take(X1, X2)) → TAKE(proper(X1), proper(X2))
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(sel(X1, X2)) → SEL(proper(X1), proper(X2))
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)
U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)
FST(ok(X)) → FST(X)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
SND(ok(X)) → SND(X)
U211(ok(X1), ok(X2)) → U211(X1, X2)
U311(ok(X1), ok(X2)) → U311(X1, X2)
U411(ok(X1), ok(X2)) → U411(X1, X2)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
NATSFROM(ok(X)) → NATSFROM(X)
S(ok(X)) → S(X)
U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)
HEAD(ok(X)) → HEAD(X)
AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
U611(ok(X1), ok(X2)) → U611(X1, X2)
U711(ok(X1), ok(X2)) → U711(X1, X2)
PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
U811(ok(X1), ok(X2), ok(X3), ok(X4)) → U811(X1, X2, X3, X4)
U821(ok(X1), ok(X2)) → U821(X1, X2)
U911(ok(X1), ok(X2)) → U911(X1, X2)
AND(ok(X1), ok(X2)) → AND(X1, X2)
ISNATURAL(ok(X)) → ISNATURAL(X)
ISLNAT(ok(X)) → ISLNAT(X)
ISPLNAT(ok(X)) → ISPLNAT(X)
TAIL(ok(X)) → TAIL(X)
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
TOP(mark(X)) → TOP(proper(X))
TOP(mark(X)) → PROPER(X)
TOP(ok(X)) → TOP(active(X))
TOP(ok(X)) → ACTIVE(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(3) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 30 SCCs with 134 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

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

ISPLNAT(ok(X)) → ISPLNAT(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


ISPLNAT(ok(X)) → ISPLNAT(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ISPLNAT(x1)  =  ISPLNAT(x1)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
ISPLNAT1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
ISPLNAT1: [1]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(7) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(8) PisEmptyProof (EQUIVALENT transformation)

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

(9) TRUE

(10) Obligation:

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

ISLNAT(ok(X)) → ISLNAT(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(11) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


ISLNAT(ok(X)) → ISLNAT(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ISLNAT(x1)  =  ISLNAT(x1)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
ISLNAT1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
ISLNAT1: [1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(12) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(13) PisEmptyProof (EQUIVALENT transformation)

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

(14) TRUE

(15) Obligation:

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

ISNATURAL(ok(X)) → ISNATURAL(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(16) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


ISNATURAL(ok(X)) → ISNATURAL(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ISNATURAL(x1)  =  ISNATURAL(x1)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
ISNATURAL1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ISNATURAL1: [1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(17) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(18) PisEmptyProof (EQUIVALENT transformation)

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

(19) TRUE

(20) 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(ok(X1), ok(X2)) → SEL(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(21) 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(x2)
mark(x1)  =  mark(x1)
ok(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
top > active1 > nil > mark1
top > active1 > isNatural > tt > fst1 > and2 > mark1
top > active1 > isNatural > tt > splitAt2 > U712 > mark1
top > active1 > isNatural > tt > splitAt2 > U814 > mark1
top > active1 > isNatural > tt > splitAt2 > and2 > mark1
top > active1 > isNatural > tt > natsFrom1 > mark1
top > active1 > isNatural > tt > s1 > and2 > mark1
top > active1 > isNatural > tt > head1 > mark1
top > active1 > isNatural > tt > afterNth2 > U113 > mark1
top > active1 > isNatural > tt > afterNth2 > and2 > mark1
top > active1 > isNatural > tt > pair2 > U212 > mark1
top > active1 > isNatural > tt > pair2 > cons2 > U912 > mark1
top > active1 > isNatural > tt > pair2 > cons2 > and2 > mark1
top > active1 > isNatural > tt > pair2 > U612 > mark1
top > active1 > isNatural > tt > U822 > cons2 > U912 > mark1
top > active1 > isNatural > tt > U822 > cons2 > and2 > mark1
top > active1 > isNatural > isLNat > isPLNat > and2 > mark1
top > active1 > isNatural > proper1 > U1013 > fst1 > and2 > mark1
top > active1 > isNatural > proper1 > splitAt2 > U712 > mark1
top > active1 > isNatural > proper1 > splitAt2 > U814 > mark1
top > active1 > isNatural > proper1 > splitAt2 > and2 > mark1
top > active1 > isNatural > proper1 > U312 > mark1
top > active1 > isNatural > proper1 > U412 > s1 > and2 > mark1
top > active1 > isNatural > proper1 > natsFrom1 > mark1
top > active1 > isNatural > proper1 > afterNth2 > U113 > mark1
top > active1 > isNatural > proper1 > afterNth2 > and2 > mark1
top > active1 > isNatural > proper1 > pair2 > U212 > mark1
top > active1 > isNatural > proper1 > pair2 > cons2 > U912 > mark1
top > active1 > isNatural > proper1 > pair2 > cons2 > and2 > mark1
top > active1 > isNatural > proper1 > pair2 > U612 > mark1
top > active1 > isNatural > proper1 > U822 > cons2 > U912 > mark1
top > active1 > isNatural > proper1 > U822 > cons2 > and2 > mark1
top > active1 > isNatural > proper1 > isPLNat > and2 > mark1
top > active1 > isNatural > proper1 > tail1 > U912 > mark1
top > active1 > isNatural > proper1 > tail1 > and2 > mark1
top > active1 > isNatural > proper1 > take2 > and2 > mark1
top > active1 > isNatural > proper1 > 0 > U712 > mark1
top > active1 > isNatural > proper1 > sel2 > U513 > head1 > mark1
top > active1 > isNatural > proper1 > sel2 > and2 > mark1

Status:
U912: [2,1]
sel2: [2,1]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U212: [2,1]
U712: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [2,1,3,4]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [2,1,3]
natsFrom1: [1]
nil: []
isPLNat: []
afterNth2: [1,2]
tail1: [1]
U312: [1,2]
U113: [2,3,1]
head1: [1]
SEL1: [1]
isLNat: []
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(22) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(23) 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)  =  SEL(x1)
mark(x1)  =  mark(x1)
ok(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
SEL1 > isLNat
proper1 > fst1 > mark1 > isLNat
proper1 > fst1 > isPLNat > isLNat
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > isLNat
proper1 > splitAt2 > and2 > mark1 > isLNat
proper1 > U113 > mark1 > isLNat
proper1 > U212 > mark1 > isLNat
proper1 > U412 > cons2 > U312 > mark1 > isLNat
proper1 > U612 > mark1 > isLNat
proper1 > U712 > pair2 > cons2 > U312 > mark1 > isLNat
proper1 > U712 > nil > mark1 > isLNat
proper1 > U712 > nil > tt > isLNat
proper1 > U912 > mark1 > isLNat
proper1 > isNatural > tt > isLNat
proper1 > isNatural > and2 > mark1 > isLNat
proper1 > take2 > U1013 > mark1 > isLNat
proper1 > 0 > mark1 > isLNat
proper1 > 0 > tt > isLNat
proper1 > sel2 > U513 > head1 > mark1 > isLNat
proper1 > sel2 > U513 > afterNth2 > mark1 > isLNat
proper1 > sel2 > and2 > mark1 > isLNat
top > active1 > fst1 > mark1 > isLNat
top > active1 > fst1 > isPLNat > isLNat
top > active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > isLNat
top > active1 > splitAt2 > and2 > mark1 > isLNat
top > active1 > U113 > mark1 > isLNat
top > active1 > U212 > mark1 > isLNat
top > active1 > U412 > cons2 > U312 > mark1 > isLNat
top > active1 > U612 > mark1 > isLNat
top > active1 > U712 > pair2 > cons2 > U312 > mark1 > isLNat
top > active1 > U712 > nil > mark1 > isLNat
top > active1 > U712 > nil > tt > isLNat
top > active1 > U912 > mark1 > isLNat
top > active1 > isNatural > tt > isLNat
top > active1 > isNatural > and2 > mark1 > isLNat
top > active1 > take2 > U1013 > mark1 > isLNat
top > active1 > sel2 > U513 > head1 > mark1 > isLNat
top > active1 > sel2 > U513 > afterNth2 > mark1 > isLNat
top > active1 > sel2 > and2 > mark1 > isLNat

Status:
U912: [2,1]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [2,1]
U712: [1,2]
U212: [1,2]
U1013: [3,1,2]
active1: [1]
tt: []
U814: [1,3,4,2]
pair2: [1,2]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
isPLNat: []
afterNth2: [1,2]
U312: [1,2]
head1: [1]
U113: [2,1,3]
isLNat: []
SEL1: [1]
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [1,2]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(24) Obligation:

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

SEL(ok(X1), ok(X2)) → SEL(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(25) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SEL(ok(X1), ok(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(x2)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  x3
tt  =  tt
mark(x1)  =  x1
fst(x1)  =  x1
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  x3
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  x3
head(x1)  =  head(x1)
afterNth(x1, x2)  =  x2
U61(x1, x2)  =  U61(x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x2)
isNatural(x1)  =  x1
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
SEL1 > ok1
active1 > U411 > cons2 > and1 > ok1
active1 > U411 > s1 > and1 > ok1
active1 > head1 > U312 > ok1
active1 > head1 > and1 > ok1
active1 > U712 > ok1
active1 > pair2 > U212 > ok1
active1 > pair2 > cons2 > and1 > ok1
active1 > pair2 > U611 > ok1
active1 > nil > tt > snd1 > ok1
active1 > nil > tt > s1 > and1 > ok1
active1 > nil > tt > U822 > cons2 > and1 > ok1
active1 > U812 > U822 > cons2 > and1 > ok1
active1 > U912 > ok1
active1 > tail1 > and1 > ok1
active1 > take2 > ok1
active1 > sel2 > ok1
proper1 > U411 > cons2 > and1 > ok1
proper1 > U411 > s1 > and1 > ok1
proper1 > head1 > U312 > ok1
proper1 > head1 > and1 > ok1
proper1 > U712 > ok1
proper1 > pair2 > U212 > ok1
proper1 > pair2 > cons2 > and1 > ok1
proper1 > pair2 > U611 > ok1
proper1 > nil > tt > snd1 > ok1
proper1 > nil > tt > s1 > and1 > ok1
proper1 > nil > tt > U822 > cons2 > and1 > ok1
proper1 > U812 > U822 > cons2 > and1 > ok1
proper1 > U912 > ok1
proper1 > tail1 > and1 > ok1
proper1 > take2 > ok1
proper1 > 0 > ok1
proper1 > sel2 > ok1
top > ok1

Status:
sel2: [1,2]
U912: [1,2]
U411: [1]
take2: [1,2]
U712: [1,2]
U212: [1,2]
active1: [1]
tt: []
pair2: [1,2]
s1: [1]
proper1: [1]
top: []
nil: []
tail1: [1]
U611: [1]
U312: [1,2]
snd1: [1]
head1: [1]
ok1: [1]
SEL1: [1]
0: []
cons2: [1,2]
U822: [1,2]
U812: [1,2]
and1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(26) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(27) PisEmptyProof (EQUIVALENT transformation)

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

(28) TRUE

(29) 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(ok(X1), ok(X2)) → TAKE(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


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)  =  TAKE(x1)
mark(x1)  =  mark(x1)
ok(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > fst1 > mark1
active1 > U1013 > splitAt2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U412 > mark1
active1 > cons2 > U312 > mark1
active1 > cons2 > U814 > mark1
active1 > s1 > U814 > mark1
active1 > U513 > mark1
active1 > afterNth2 > mark1
active1 > U612 > mark1
active1 > U712 > mark1
active1 > U712 > nil > tt
active1 > pair2 > mark1
active1 > U822 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > isNatural > mark1
active1 > isNatural > tt
active1 > isLNat > mark1
active1 > isLNat > tt
active1 > isPLNat > mark1
active1 > take2 > mark1
active1 > sel2 > mark1

Status:
U912: [1,2]
sel2: [2,1]
isNatural: []
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [2,4,3,1]
pair2: [1,2]
s1: [1]
top: []
U513: [1,3,2]
nil: []
TAKE1: [1]
isPLNat: []
afterNth2: [1,2]
U312: [1,2]
snd1: [1]
U113: [1,3,2]
isLNat: []
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(31) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(32) 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(x2)
mark(x1)  =  mark(x1)
ok(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U113 > mark1
active1 > U412 > cons2 > U312 > mark1
active1 > U412 > cons2 > and2 > mark1
active1 > U412 > natsFrom1 > mark1
active1 > U412 > s1 > U814 > splitAt2 > mark1
active1 > U412 > s1 > and2 > mark1
active1 > U513 > head1 > mark1
active1 > U513 > afterNth2 > mark1
active1 > U612 > mark1
active1 > U712 > mark1
active1 > nil > tt > fst1 > U212 > mark1
active1 > nil > tt > fst1 > and2 > mark1
active1 > nil > tt > snd1 > mark1
active1 > nil > tt > natsFrom1 > mark1
active1 > nil > tt > s1 > U814 > splitAt2 > mark1
active1 > nil > tt > s1 > and2 > mark1
active1 > nil > tt > head1 > mark1
active1 > nil > tt > afterNth2 > mark1
active1 > nil > tt > pair2 > U212 > mark1
active1 > nil > tt > pair2 > cons2 > U312 > mark1
active1 > nil > tt > pair2 > cons2 > and2 > mark1
active1 > nil > tt > U822 > cons2 > U312 > mark1
active1 > nil > tt > U822 > cons2 > and2 > mark1
active1 > U912 > mark1
active1 > isNatural > isLNat > tt > fst1 > U212 > mark1
active1 > isNatural > isLNat > tt > fst1 > and2 > mark1
active1 > isNatural > isLNat > tt > snd1 > mark1
active1 > isNatural > isLNat > tt > natsFrom1 > mark1
active1 > isNatural > isLNat > tt > s1 > U814 > splitAt2 > mark1
active1 > isNatural > isLNat > tt > s1 > and2 > mark1
active1 > isNatural > isLNat > tt > head1 > mark1
active1 > isNatural > isLNat > tt > afterNth2 > mark1
active1 > isNatural > isLNat > tt > pair2 > U212 > mark1
active1 > isNatural > isLNat > tt > pair2 > cons2 > U312 > mark1
active1 > isNatural > isLNat > tt > pair2 > cons2 > and2 > mark1
active1 > isNatural > isLNat > tt > U822 > cons2 > U312 > mark1
active1 > isNatural > isLNat > tt > U822 > cons2 > and2 > mark1
active1 > isNatural > isLNat > isPLNat > and2 > mark1
active1 > take2 > U1013 > mark1
active1 > take2 > and2 > mark1
active1 > sel2 > mark1
0 > U712 > mark1

Status:
U912: [2,1]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U212: [2,1]
U712: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [2,1]
s1: [1]
top: []
U513: [1,3,2]
natsFrom1: [1]
nil: []
TAKE1: [1]
isPLNat: []
afterNth2: [2,1]
snd1: [1]
U312: [2,1]
U113: [3,1,2]
head1: [1]
isLNat: []
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(33) Obligation:

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

TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(34) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAKE(ok(X1), ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  U11(x1)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  x2
U31(x1, x2)  =  U31(x1)
U41(x1, x2)  =  U41(x1)
cons(x1, x2)  =  x2
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x3)
head(x1)  =  x1
afterNth(x1, x2)  =  x1
U61(x1, x2)  =  U61(x2)
U71(x1, x2)  =  U71(x1)
pair(x1, x2)  =  pair(x1)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x3, x4)
U82(x1, x2)  =  U82(x1)
U91(x1, x2)  =  x2
and(x1, x2)  =  and(x1)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  x1
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
TAKE2 > mark
proper1 > U1013 > ok1 > mark
proper1 > fst1 > isLNat1 > ok1 > mark
proper1 > fst1 > isLNat1 > tt > mark
proper1 > U111 > snd1 > ok1 > mark
proper1 > U311 > ok1 > mark
proper1 > natsFrom1 > U411 > ok1 > mark
proper1 > s1 > U812 > ok1 > mark
proper1 > s1 > and1 > ok1 > mark
proper1 > s1 > isLNat1 > ok1 > mark
proper1 > s1 > isLNat1 > tt > mark
proper1 > U511 > ok1 > mark
proper1 > U611 > ok1 > mark
proper1 > U711 > pair1 > ok1 > mark
proper1 > nil > ok1 > mark
proper1 > nil > tt > mark
proper1 > U821 > pair1 > ok1 > mark
proper1 > isNatural1 > and1 > ok1 > mark
proper1 > isNatural1 > isLNat1 > ok1 > mark
proper1 > isNatural1 > isLNat1 > tt > mark
proper1 > isPLNat1 > and1 > ok1 > mark
proper1 > isPLNat1 > isLNat1 > ok1 > mark
proper1 > isPLNat1 > isLNat1 > tt > mark
proper1 > tail1 > isLNat1 > ok1 > mark
proper1 > tail1 > isLNat1 > tt > mark
proper1 > take2 > isLNat1 > ok1 > mark
proper1 > take2 > isLNat1 > tt > mark
proper1 > 0 > mark
top > active1 > U1013 > ok1 > mark
top > active1 > fst1 > isLNat1 > ok1 > mark
top > active1 > fst1 > isLNat1 > tt > mark
top > active1 > U111 > snd1 > ok1 > mark
top > active1 > U311 > ok1 > mark
top > active1 > natsFrom1 > U411 > ok1 > mark
top > active1 > s1 > U812 > ok1 > mark
top > active1 > s1 > and1 > ok1 > mark
top > active1 > s1 > isLNat1 > ok1 > mark
top > active1 > s1 > isLNat1 > tt > mark
top > active1 > U511 > ok1 > mark
top > active1 > U611 > ok1 > mark
top > active1 > U711 > pair1 > ok1 > mark
top > active1 > nil > ok1 > mark
top > active1 > nil > tt > mark
top > active1 > U821 > pair1 > ok1 > mark
top > active1 > isPLNat1 > and1 > ok1 > mark
top > active1 > isPLNat1 > isLNat1 > ok1 > mark
top > active1 > isPLNat1 > isLNat1 > tt > mark
top > active1 > tail1 > isLNat1 > ok1 > mark
top > active1 > tail1 > isLNat1 > tt > mark
top > active1 > take2 > isLNat1 > ok1 > mark
top > active1 > take2 > isLNat1 > tt > mark

Status:
U411: [1]
take2: [2,1]
pair1: [1]
U1013: [2,1,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
TAKE2: [2,1]
tt: []
s1: [1]
U111: [1]
proper1: [1]
top: []
U711: [1]
nil: []
natsFrom1: [1]
tail1: [1]
U611: [1]
snd1: [1]
U821: [1]
ok1: [1]
0: []
U812: [1,2]
U311: [1]
mark: []
isLNat1: [1]
fst1: [1]
and1: [1]
U511: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(35) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(36) PisEmptyProof (EQUIVALENT transformation)

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

(37) TRUE

(38) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(39) 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: Combined order from the following AFS and order.
TAIL(x1)  =  TAIL(x1)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
TAIL1 > mark1
active1 > tt > fst1 > isLNat1 > mark1
active1 > tt > splitAt2 > mark1
active1 > tt > snd1 > mark1
active1 > tt > afterNth2 > isLNat1 > mark1
active1 > tt > nil > mark1
active1 > tt > U822 > cons2 > mark1
active1 > tt > U822 > pair2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > U412 > cons2 > mark1
active1 > U513 > afterNth2 > isLNat1 > mark1
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > nil > mark1
active1 > U814 > splitAt2 > mark1
active1 > U814 > U822 > cons2 > mark1
active1 > U814 > U822 > pair2 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > take2 > U1013 > fst1 > isLNat1 > mark1
active1 > take2 > U1013 > splitAt2 > mark1
active1 > sel2 > isLNat1 > mark1
0 > isLNat1 > mark1
top > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [3,1,2,4]
pair2: [2,1]
TAIL1: [1]
top: []
U513: [1,3,2]
nil: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(40) Obligation:

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

TAIL(ok(X)) → TAIL(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(41) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


TAIL(ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
TAIL1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
TAIL1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(42) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(43) PisEmptyProof (EQUIVALENT transformation)

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

(44) TRUE

(45) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(46) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AND(ok(X1), ok(X2)) → AND(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
AND(x1, x2)  =  x2
ok(x1)  =  ok(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  x2
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U212 > ok1
active1 > U412 > ok1
active1 > U513 > head1 > ok1
active1 > U513 > afterNth2 > U112 > ok1
active1 > U513 > afterNth2 > and2 > ok1
active1 > U612 > ok1
active1 > U712 > pair2 > ok1
active1 > nil > tt > fst1 > and2 > ok1
active1 > nil > tt > cons2 > U813 > splitAt2 > ok1
active1 > nil > tt > cons2 > U813 > U822 > pair2 > ok1
active1 > nil > tt > cons2 > isLNat1 > and2 > ok1
active1 > nil > tt > head1 > ok1
active1 > nil > tt > afterNth2 > U112 > ok1
active1 > nil > tt > afterNth2 > and2 > ok1
active1 > U912 > ok1
active1 > isNatural1 > isLNat1 > and2 > ok1
active1 > isPLNat1 > isLNat1 > and2 > ok1
active1 > take2 > U1013 > fst1 > and2 > ok1
active1 > take2 > U1013 > splitAt2 > ok1
active1 > sel2 > and2 > ok1
0 > U712 > pair2 > ok1
0 > isLNat1 > and2 > ok1
top > proper1 > U212 > ok1
top > proper1 > U412 > ok1
top > proper1 > cons2 > U813 > splitAt2 > ok1
top > proper1 > cons2 > U813 > U822 > pair2 > ok1
top > proper1 > cons2 > isLNat1 > and2 > ok1
top > proper1 > U513 > head1 > ok1
top > proper1 > U513 > afterNth2 > U112 > ok1
top > proper1 > U513 > afterNth2 > and2 > ok1
top > proper1 > U612 > ok1
top > proper1 > U712 > pair2 > ok1
top > proper1 > U912 > ok1
top > proper1 > isNatural1 > isLNat1 > and2 > ok1
top > proper1 > isPLNat1 > isLNat1 > and2 > ok1
top > proper1 > take2 > U1013 > fst1 > and2 > ok1
top > proper1 > take2 > U1013 > splitAt2 > ok1
top > proper1 > sel2 > and2 > ok1

Status:
U912: [1,2]
sel2: [2,1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [1,2,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
pair2: [1,2]
proper1: [1]
top: []
U513: [3,2,1]
nil: []
afterNth2: [2,1]
U813: [2,1,3]
head1: [1]
ok1: [1]
U112: [1,2]
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(47) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(48) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


AND(mark(X1), X2) → AND(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
AND(x1, x2)  =  AND(x1)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > splitAt2 > mark1
active1 > tt > splitAt2 > ok
active1 > tt > snd1 > mark1
active1 > tt > snd1 > ok
active1 > tt > cons2 > mark1
active1 > tt > cons2 > ok
active1 > tt > afterNth2 > mark1
active1 > tt > afterNth2 > ok
active1 > tt > pair2 > mark1
active1 > tt > pair2 > ok
active1 > tt > nil > mark1
active1 > tt > nil > ok
active1 > tt > U822 > mark1
active1 > tt > U822 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U1013 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U1013 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > splitAt2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > splitAt2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U113 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U113 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > snd1 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > snd1 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U212 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U212 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U312 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U312 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U412 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U412 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > cons2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > cons2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U513 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U513 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > afterNth2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > afterNth2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U612 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U612 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U712 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U712 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > pair2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > pair2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U814 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U814 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U822 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U822 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U912 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U912 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > and2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > and2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > take2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > take2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > 0
active1 > isPLNat > isLNat > isNatural > proper1 > sel2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > sel2 > ok
top > proper1 > U1013 > mark1
top > proper1 > U1013 > ok
top > proper1 > splitAt2 > mark1
top > proper1 > splitAt2 > ok
top > proper1 > U113 > mark1
top > proper1 > U113 > ok
top > proper1 > snd1 > mark1
top > proper1 > snd1 > ok
top > proper1 > U212 > mark1
top > proper1 > U212 > ok
top > proper1 > U312 > mark1
top > proper1 > U312 > ok
top > proper1 > U412 > mark1
top > proper1 > U412 > ok
top > proper1 > cons2 > mark1
top > proper1 > cons2 > ok
top > proper1 > U513 > mark1
top > proper1 > U513 > ok
top > proper1 > afterNth2 > mark1
top > proper1 > afterNth2 > ok
top > proper1 > U612 > mark1
top > proper1 > U612 > ok
top > proper1 > U712 > mark1
top > proper1 > U712 > ok
top > proper1 > pair2 > mark1
top > proper1 > pair2 > ok
top > proper1 > U814 > mark1
top > proper1 > U814 > ok
top > proper1 > U822 > mark1
top > proper1 > U822 > ok
top > proper1 > U912 > mark1
top > proper1 > U912 > ok
top > proper1 > and2 > mark1
top > proper1 > and2 > ok
top > proper1 > take2 > mark1
top > proper1 > take2 > ok
top > proper1 > 0
top > proper1 > sel2 > mark1
top > proper1 > sel2 > ok

Status:
U912: [1,2]
sel2: [2,1]
isNatural: []
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [2,3,1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
proper1: [1]
top: []
U513: [1,3,2]
nil: []
isPLNat: []
afterNth2: [2,1]
U312: [1,2]
snd1: [1]
AND1: [1]
U113: [2,3,1]
isLNat: []
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [1,2]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(49) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(50) PisEmptyProof (EQUIVALENT transformation)

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

(51) TRUE

(52) Obligation:

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

U911(ok(X1), ok(X2)) → U911(X1, X2)
U911(mark(X1), X2) → U911(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(53) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U911(ok(X1), ok(X2)) → U911(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U911(x1, x2)  =  x2
ok(x1)  =  ok(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  x2
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U212 > ok1
active1 > U412 > ok1
active1 > U513 > head1 > ok1
active1 > U513 > afterNth2 > U112 > ok1
active1 > U513 > afterNth2 > and2 > ok1
active1 > U612 > ok1
active1 > U712 > pair2 > ok1
active1 > nil > tt > fst1 > and2 > ok1
active1 > nil > tt > cons2 > U813 > splitAt2 > ok1
active1 > nil > tt > cons2 > U813 > U822 > pair2 > ok1
active1 > nil > tt > cons2 > isLNat1 > and2 > ok1
active1 > nil > tt > head1 > ok1
active1 > nil > tt > afterNth2 > U112 > ok1
active1 > nil > tt > afterNth2 > and2 > ok1
active1 > U912 > ok1
active1 > isNatural1 > isLNat1 > and2 > ok1
active1 > isPLNat1 > isLNat1 > and2 > ok1
active1 > take2 > U1013 > fst1 > and2 > ok1
active1 > take2 > U1013 > splitAt2 > ok1
active1 > sel2 > and2 > ok1
0 > U712 > pair2 > ok1
0 > isLNat1 > and2 > ok1
top > proper1 > U212 > ok1
top > proper1 > U412 > ok1
top > proper1 > cons2 > U813 > splitAt2 > ok1
top > proper1 > cons2 > U813 > U822 > pair2 > ok1
top > proper1 > cons2 > isLNat1 > and2 > ok1
top > proper1 > U513 > head1 > ok1
top > proper1 > U513 > afterNth2 > U112 > ok1
top > proper1 > U513 > afterNth2 > and2 > ok1
top > proper1 > U612 > ok1
top > proper1 > U712 > pair2 > ok1
top > proper1 > U912 > ok1
top > proper1 > isNatural1 > isLNat1 > and2 > ok1
top > proper1 > isPLNat1 > isLNat1 > and2 > ok1
top > proper1 > take2 > U1013 > fst1 > and2 > ok1
top > proper1 > take2 > U1013 > splitAt2 > ok1
top > proper1 > sel2 > and2 > ok1

Status:
U912: [1,2]
sel2: [2,1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [1,2,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
pair2: [1,2]
proper1: [1]
top: []
U513: [3,2,1]
nil: []
afterNth2: [2,1]
U813: [2,1,3]
head1: [1]
ok1: [1]
U112: [1,2]
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(54) Obligation:

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

U911(mark(X1), X2) → U911(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(55) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U911(mark(X1), X2) → U911(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U911(x1, x2)  =  U911(x1)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > splitAt2 > mark1
active1 > tt > splitAt2 > ok
active1 > tt > snd1 > mark1
active1 > tt > snd1 > ok
active1 > tt > cons2 > mark1
active1 > tt > cons2 > ok
active1 > tt > afterNth2 > mark1
active1 > tt > afterNth2 > ok
active1 > tt > pair2 > mark1
active1 > tt > pair2 > ok
active1 > tt > nil > mark1
active1 > tt > nil > ok
active1 > tt > U822 > mark1
active1 > tt > U822 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U1013 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U1013 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > splitAt2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > splitAt2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U113 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U113 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > snd1 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > snd1 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U212 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U212 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U312 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U312 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U412 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U412 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > cons2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > cons2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U513 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U513 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > afterNth2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > afterNth2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U612 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U612 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U712 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U712 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > pair2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > pair2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U814 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U814 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U822 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U822 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U912 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U912 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > and2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > and2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > take2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > take2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > 0
active1 > isPLNat > isLNat > isNatural > proper1 > sel2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > sel2 > ok
top > proper1 > U1013 > mark1
top > proper1 > U1013 > ok
top > proper1 > splitAt2 > mark1
top > proper1 > splitAt2 > ok
top > proper1 > U113 > mark1
top > proper1 > U113 > ok
top > proper1 > snd1 > mark1
top > proper1 > snd1 > ok
top > proper1 > U212 > mark1
top > proper1 > U212 > ok
top > proper1 > U312 > mark1
top > proper1 > U312 > ok
top > proper1 > U412 > mark1
top > proper1 > U412 > ok
top > proper1 > cons2 > mark1
top > proper1 > cons2 > ok
top > proper1 > U513 > mark1
top > proper1 > U513 > ok
top > proper1 > afterNth2 > mark1
top > proper1 > afterNth2 > ok
top > proper1 > U612 > mark1
top > proper1 > U612 > ok
top > proper1 > U712 > mark1
top > proper1 > U712 > ok
top > proper1 > pair2 > mark1
top > proper1 > pair2 > ok
top > proper1 > U814 > mark1
top > proper1 > U814 > ok
top > proper1 > U822 > mark1
top > proper1 > U822 > ok
top > proper1 > U912 > mark1
top > proper1 > U912 > ok
top > proper1 > and2 > mark1
top > proper1 > and2 > ok
top > proper1 > take2 > mark1
top > proper1 > take2 > ok
top > proper1 > 0
top > proper1 > sel2 > mark1
top > proper1 > sel2 > ok

Status:
U912: [1,2]
sel2: [2,1]
isNatural: []
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [2,3,1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
proper1: [1]
top: []
U513: [1,3,2]
nil: []
isPLNat: []
afterNth2: [2,1]
U91^11: [1]
U312: [1,2]
snd1: [1]
U113: [2,3,1]
isLNat: []
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [1,2]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(56) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(57) PisEmptyProof (EQUIVALENT transformation)

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

(58) TRUE

(59) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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(mark(X1), X2) → U821(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2)  =  U821(x1, x2)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > mark1
active1 > splitAt2 > U814 > mark1
active1 > splitAt2 > isNatural > tt
active1 > splitAt2 > isNatural > isLNat
active1 > U113 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > natsFrom1 > U412 > mark1
active1 > natsFrom1 > isNatural > tt
active1 > natsFrom1 > isNatural > isLNat
active1 > U513 > afterNth2 > mark1
active1 > U513 > afterNth2 > isNatural > tt
active1 > U513 > afterNth2 > isNatural > isLNat
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > pair2 > isLNat
active1 > nil > mark1
active1 > nil > tt
active1 > U822 > cons2 > U814 > mark1
active1 > U822 > cons2 > isNatural > tt
active1 > U822 > cons2 > isNatural > isLNat
active1 > U822 > pair2 > mark1
active1 > U822 > pair2 > isLNat
active1 > U912 > mark1
active1 > isPLNat > and2 > mark1
active1 > isPLNat > isNatural > tt
active1 > isPLNat > isNatural > isLNat
active1 > take2 > mark1
active1 > take2 > isNatural > tt
active1 > take2 > isNatural > isLNat
active1 > sel2 > mark1
active1 > sel2 > isNatural > tt
active1 > sel2 > isNatural > isLNat

Status:
U912: [1,2]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [1,2]
take2: [2,1]
splitAt2: [1,2]
U712: [2,1]
U212: [2,1]
U1013: [3,1,2]
active1: [1]
tt: []
U814: [1,2,3,4]
pair2: [1,2]
top: []
U513: [2,1,3]
nil: []
natsFrom1: [1]
isPLNat: []
afterNth2: [2,1]
U312: [2,1]
U113: [2,3,1]
isLNat: []
U82^12: [1,2]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [1,2]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(61) Obligation:

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

U821(ok(X1), ok(X2)) → U821(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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(ok(X1), ok(X2)) → U821(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U821(x1, x2)  =  U821(x1)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
U82^11 > ok1
0 > U712 > mark1 > ok1
0 > U712 > nil > ok1
top > active1 > U1013 > mark1 > ok1
top > active1 > tt > splitAt2 > mark1 > ok1
top > active1 > tt > cons2 > mark1 > ok1
top > active1 > tt > s1 > mark1 > ok1
top > active1 > tt > afterNth2 > mark1 > ok1
top > active1 > tt > pair2 > mark1 > ok1
top > active1 > tt > nil > ok1
top > active1 > tt > U822 > mark1 > ok1
top > active1 > U113 > mark1 > ok1
top > active1 > U212 > mark1 > ok1
top > active1 > U312 > mark1 > ok1
top > active1 > U412 > mark1 > ok1
top > active1 > U513 > mark1 > ok1
top > active1 > U612 > mark1 > ok1
top > active1 > U712 > mark1 > ok1
top > active1 > U712 > nil > ok1
top > active1 > U814 > mark1 > ok1
top > active1 > U912 > mark1 > ok1
top > active1 > and2 > mark1 > ok1
top > active1 > isNatural1 > mark1 > ok1
top > active1 > take2 > mark1 > ok1
top > active1 > sel2 > mark1 > ok1
top > proper1 > U1013 > mark1 > ok1
top > proper1 > splitAt2 > mark1 > ok1
top > proper1 > U113 > mark1 > ok1
top > proper1 > U212 > mark1 > ok1
top > proper1 > U312 > mark1 > ok1
top > proper1 > U412 > mark1 > ok1
top > proper1 > cons2 > mark1 > ok1
top > proper1 > s1 > mark1 > ok1
top > proper1 > U513 > mark1 > ok1
top > proper1 > afterNth2 > mark1 > ok1
top > proper1 > U612 > mark1 > ok1
top > proper1 > U712 > mark1 > ok1
top > proper1 > U712 > nil > ok1
top > proper1 > pair2 > mark1 > ok1
top > proper1 > U814 > mark1 > ok1
top > proper1 > U822 > mark1 > ok1
top > proper1 > U912 > mark1 > ok1
top > proper1 > and2 > mark1 > ok1
top > proper1 > isNatural1 > mark1 > ok1
top > proper1 > take2 > mark1 > ok1
top > proper1 > sel2 > mark1 > ok1

Status:
U912: [2,1]
sel2: [2,1]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [2,3,1]
isNatural1: [1]
active1: [1]
tt: []
U814: [3,1,4,2]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [1,2]
U312: [1,2]
U113: [1,2,3]
ok1: [1]
0: []
cons2: [2,1]
U822: [1,2]
U612: [2,1]
U412: [1,2]
U82^11: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(63) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(64) PisEmptyProof (EQUIVALENT transformation)

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

(65) TRUE

(66) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(67) 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, X4) → U811(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3, x4)  =  U811(x1, x2)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
top > active1 > U212 > mark1 > U81^12
top > active1 > U412 > cons2 > U312 > mark1 > U81^12
top > active1 > U412 > cons2 > U814 > splitAt2 > and2 > mark1 > U81^12
top > active1 > U412 > cons2 > U814 > splitAt2 > isLNat
top > active1 > U412 > cons2 > U814 > U822 > mark1 > U81^12
top > active1 > U412 > s1 > and2 > mark1 > U81^12
top > active1 > U412 > s1 > isLNat
top > active1 > afterNth2 > U113 > splitAt2 > and2 > mark1 > U81^12
top > active1 > afterNth2 > U113 > splitAt2 > isLNat
top > active1 > U612 > mark1 > U81^12
top > active1 > U712 > mark1 > U81^12
top > active1 > U712 > nil
top > active1 > pair2 > and2 > mark1 > U81^12
top > active1 > pair2 > isLNat
top > active1 > U912 > mark1 > U81^12
top > active1 > isNatural > tt > splitAt2 > and2 > mark1 > U81^12
top > active1 > isNatural > tt > splitAt2 > isLNat
top > active1 > isNatural > tt > s1 > and2 > mark1 > U81^12
top > active1 > isNatural > tt > s1 > isLNat
top > active1 > isNatural > tt > nil
top > active1 > isNatural > tt > U822 > mark1 > U81^12
top > active1 > isPLNat > and2 > mark1 > U81^12
top > active1 > isPLNat > isLNat
top > active1 > take2 > U1013 > splitAt2 > and2 > mark1 > U81^12
top > active1 > take2 > U1013 > splitAt2 > isLNat
top > active1 > sel2 > U513 > mark1 > U81^12
top > active1 > sel2 > and2 > mark1 > U81^12
top > active1 > sel2 > isLNat
top > proper1 > U212 > mark1 > U81^12
top > proper1 > U412 > cons2 > U312 > mark1 > U81^12
top > proper1 > U412 > cons2 > U814 > splitAt2 > and2 > mark1 > U81^12
top > proper1 > U412 > cons2 > U814 > splitAt2 > isLNat
top > proper1 > U412 > cons2 > U814 > U822 > mark1 > U81^12
top > proper1 > U412 > s1 > and2 > mark1 > U81^12
top > proper1 > U412 > s1 > isLNat
top > proper1 > afterNth2 > U113 > splitAt2 > and2 > mark1 > U81^12
top > proper1 > afterNth2 > U113 > splitAt2 > isLNat
top > proper1 > U612 > mark1 > U81^12
top > proper1 > U712 > mark1 > U81^12
top > proper1 > U712 > nil
top > proper1 > pair2 > and2 > mark1 > U81^12
top > proper1 > pair2 > isLNat
top > proper1 > U912 > mark1 > U81^12
top > proper1 > isNatural > tt > splitAt2 > and2 > mark1 > U81^12
top > proper1 > isNatural > tt > splitAt2 > isLNat
top > proper1 > isNatural > tt > s1 > and2 > mark1 > U81^12
top > proper1 > isNatural > tt > s1 > isLNat
top > proper1 > isNatural > tt > nil
top > proper1 > isNatural > tt > U822 > mark1 > U81^12
top > proper1 > isPLNat > and2 > mark1 > U81^12
top > proper1 > isPLNat > isLNat
top > proper1 > take2 > U1013 > splitAt2 > and2 > mark1 > U81^12
top > proper1 > take2 > U1013 > splitAt2 > isLNat
top > proper1 > 0 > mark1 > U81^12
top > proper1 > 0 > isLNat
top > proper1 > sel2 > U513 > mark1 > U81^12
top > proper1 > sel2 > and2 > mark1 > U81^12
top > proper1 > sel2 > isLNat

Status:
U912: [2,1]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U712: [1,2]
U212: [1,2]
U1013: [3,2,1]
active1: [1]
tt: []
U814: [2,3,1,4]
pair2: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [1,3,2]
nil: []
isPLNat: []
afterNth2: [1,2]
U312: [1,2]
U81^12: [2,1]
U113: [2,1,3]
isLNat: []
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(68) Obligation:

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

U811(ok(X1), ok(X2), ok(X3), ok(X4)) → U811(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(69) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U811(ok(X1), ok(X2), ok(X3), ok(X4)) → U811(X1, X2, X3, X4)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U811(x1, x2, x3, x4)  =  U811(x1, x2, x3, x4)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > fst1 > ok1
active1 > U1013 > fst1 > mark1
active1 > U113 > ok1
active1 > U113 > mark1
active1 > U412 > natsFrom1 > ok1
active1 > U412 > natsFrom1 > mark1
active1 > U712 > ok1
active1 > U712 > mark1
active1 > pair2 > U212 > ok1
active1 > pair2 > U212 > mark1
active1 > pair2 > cons2 > U312 > ok1
active1 > pair2 > cons2 > U312 > mark1
active1 > pair2 > U612 > ok1
active1 > pair2 > U612 > mark1
active1 > U912 > ok1
active1 > U912 > mark1
active1 > isLNat1 > tt > fst1 > ok1
active1 > isLNat1 > tt > fst1 > mark1
active1 > isLNat1 > tt > splitAt2 > U814 > U822 > ok1
active1 > isLNat1 > tt > splitAt2 > U814 > U822 > mark1
active1 > isLNat1 > tt > cons2 > U312 > ok1
active1 > isLNat1 > tt > cons2 > U312 > mark1
active1 > isLNat1 > tt > natsFrom1 > ok1
active1 > isLNat1 > tt > natsFrom1 > mark1
active1 > isLNat1 > tt > head1 > ok1
active1 > isLNat1 > tt > head1 > mark1
active1 > isLNat1 > tt > afterNth2 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1
active1 > isLNat1 > tt > nil > ok1
active1 > isLNat1 > tt > nil > mark1
active1 > isLNat1 > and2 > ok1
active1 > isLNat1 > and2 > mark1
active1 > isLNat1 > isNatural1 > ok1
active1 > isLNat1 > isNatural1 > mark1
active1 > take2 > ok1
active1 > take2 > mark1
active1 > sel2 > U513 > head1 > ok1
active1 > sel2 > U513 > head1 > mark1
active1 > sel2 > U513 > afterNth2 > ok1
active1 > sel2 > U513 > afterNth2 > mark1
0 > U712 > ok1
0 > U712 > mark1
0 > isLNat1 > tt > fst1 > ok1
0 > isLNat1 > tt > fst1 > mark1
0 > isLNat1 > tt > splitAt2 > U814 > U822 > ok1
0 > isLNat1 > tt > splitAt2 > U814 > U822 > mark1
0 > isLNat1 > tt > cons2 > U312 > ok1
0 > isLNat1 > tt > cons2 > U312 > mark1
0 > isLNat1 > tt > natsFrom1 > ok1
0 > isLNat1 > tt > natsFrom1 > mark1
0 > isLNat1 > tt > head1 > ok1
0 > isLNat1 > tt > head1 > mark1
0 > isLNat1 > tt > afterNth2 > ok1
0 > isLNat1 > tt > afterNth2 > mark1
0 > isLNat1 > tt > nil > ok1
0 > isLNat1 > tt > nil > mark1
0 > isLNat1 > and2 > ok1
0 > isLNat1 > and2 > mark1
0 > isLNat1 > isNatural1 > ok1
0 > isLNat1 > isNatural1 > mark1
proper1 > U1013 > fst1 > ok1
proper1 > U1013 > fst1 > mark1
proper1 > U113 > ok1
proper1 > U113 > mark1
proper1 > U412 > natsFrom1 > ok1
proper1 > U412 > natsFrom1 > mark1
proper1 > U712 > ok1
proper1 > U712 > mark1
proper1 > pair2 > U212 > ok1
proper1 > pair2 > U212 > mark1
proper1 > pair2 > cons2 > U312 > ok1
proper1 > pair2 > cons2 > U312 > mark1
proper1 > pair2 > U612 > ok1
proper1 > pair2 > U612 > mark1
proper1 > U912 > ok1
proper1 > U912 > mark1
proper1 > isLNat1 > tt > fst1 > ok1
proper1 > isLNat1 > tt > fst1 > mark1
proper1 > isLNat1 > tt > splitAt2 > U814 > U822 > ok1
proper1 > isLNat1 > tt > splitAt2 > U814 > U822 > mark1
proper1 > isLNat1 > tt > cons2 > U312 > ok1
proper1 > isLNat1 > tt > cons2 > U312 > mark1
proper1 > isLNat1 > tt > natsFrom1 > ok1
proper1 > isLNat1 > tt > natsFrom1 > mark1
proper1 > isLNat1 > tt > head1 > ok1
proper1 > isLNat1 > tt > head1 > mark1
proper1 > isLNat1 > tt > afterNth2 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1
proper1 > isLNat1 > tt > nil > ok1
proper1 > isLNat1 > tt > nil > mark1
proper1 > isLNat1 > and2 > ok1
proper1 > isLNat1 > and2 > mark1
proper1 > isLNat1 > isNatural1 > ok1
proper1 > isLNat1 > isNatural1 > mark1
proper1 > take2 > ok1
proper1 > take2 > mark1
proper1 > sel2 > U513 > head1 > ok1
proper1 > sel2 > U513 > head1 > mark1
proper1 > sel2 > U513 > afterNth2 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1

Status:
U912: [1,2]
sel2: [1,2]
U81^14: [4,2,3,1]
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [1,2]
U712: [1,2]
U212: [2,1]
U1013: [1,2,3]
active1: [1]
isNatural1: [1]
tt: []
U814: [1,2,4,3]
pair2: [1,2]
proper1: [1]
top: []
U513: [2,1,3]
nil: []
natsFrom1: [1]
afterNth2: [2,1]
U312: [1,2]
head1: [1]
U113: [3,1,2]
ok1: [1]
0: []
cons2: [2,1]
U822: [1,2]
U612: [2,1]
U412: [1,2]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(70) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(71) PisEmptyProof (EQUIVALENT transformation)

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

(72) TRUE

(73) 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(ok(X1), ok(X2)) → PAIR(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(74) 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)  =  PAIR(x1)
mark(x1)  =  mark(x1)
ok(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
PAIR1 > nil
active1 > U1013 > fst1 > U212 > mark1 > nil
active1 > splitAt2 > U712 > mark1 > nil
active1 > splitAt2 > and2 > mark1 > nil
active1 > splitAt2 > isLNat > tt > snd1 > U612 > mark1 > nil
active1 > splitAt2 > isLNat > tt > natsFrom1 > mark1 > nil
active1 > splitAt2 > isLNat > tt > natsFrom1 > isNatural > nil
active1 > splitAt2 > isLNat > tt > afterNth2 > U113 > mark1 > nil
active1 > splitAt2 > isLNat > tt > afterNth2 > isNatural > nil
active1 > splitAt2 > isLNat > tt > pair2 > U212 > mark1 > nil
active1 > splitAt2 > isLNat > tt > pair2 > cons2 > U814 > mark1 > nil
active1 > splitAt2 > isLNat > tt > pair2 > cons2 > isNatural > nil
active1 > splitAt2 > isLNat > tt > pair2 > U612 > mark1 > nil
active1 > U312 > mark1 > nil
active1 > U412 > cons2 > U814 > mark1 > nil
active1 > U412 > cons2 > isNatural > nil
active1 > U412 > natsFrom1 > mark1 > nil
active1 > U412 > natsFrom1 > isNatural > nil
active1 > U513 > afterNth2 > U113 > mark1 > nil
active1 > U513 > afterNth2 > isNatural > nil
active1 > head1 > and2 > mark1 > nil
active1 > head1 > isLNat > tt > snd1 > U612 > mark1 > nil
active1 > head1 > isLNat > tt > natsFrom1 > mark1 > nil
active1 > head1 > isLNat > tt > natsFrom1 > isNatural > nil
active1 > head1 > isLNat > tt > afterNth2 > U113 > mark1 > nil
active1 > head1 > isLNat > tt > afterNth2 > isNatural > nil
active1 > head1 > isLNat > tt > pair2 > U212 > mark1 > nil
active1 > head1 > isLNat > tt > pair2 > cons2 > U814 > mark1 > nil
active1 > head1 > isLNat > tt > pair2 > cons2 > isNatural > nil
active1 > head1 > isLNat > tt > pair2 > U612 > mark1 > nil
active1 > U822 > pair2 > U212 > mark1 > nil
active1 > U822 > pair2 > cons2 > U814 > mark1 > nil
active1 > U822 > pair2 > cons2 > isNatural > nil
active1 > U822 > pair2 > U612 > mark1 > nil
active1 > isPLNat > and2 > mark1 > nil
active1 > isPLNat > isLNat > tt > snd1 > U612 > mark1 > nil
active1 > isPLNat > isLNat > tt > natsFrom1 > mark1 > nil
active1 > isPLNat > isLNat > tt > natsFrom1 > isNatural > nil
active1 > isPLNat > isLNat > tt > afterNth2 > U113 > mark1 > nil
active1 > isPLNat > isLNat > tt > afterNth2 > isNatural > nil
active1 > isPLNat > isLNat > tt > pair2 > U212 > mark1 > nil
active1 > isPLNat > isLNat > tt > pair2 > cons2 > U814 > mark1 > nil
active1 > isPLNat > isLNat > tt > pair2 > cons2 > isNatural > nil
active1 > isPLNat > isLNat > tt > pair2 > U612 > mark1 > nil
active1 > tail1 > U912 > mark1 > nil
active1 > tail1 > and2 > mark1 > nil
active1 > tail1 > isLNat > tt > snd1 > U612 > mark1 > nil
active1 > tail1 > isLNat > tt > natsFrom1 > mark1 > nil
active1 > tail1 > isLNat > tt > natsFrom1 > isNatural > nil
active1 > tail1 > isLNat > tt > afterNth2 > U113 > mark1 > nil
active1 > tail1 > isLNat > tt > afterNth2 > isNatural > nil
active1 > tail1 > isLNat > tt > pair2 > U212 > mark1 > nil
active1 > tail1 > isLNat > tt > pair2 > cons2 > U814 > mark1 > nil
active1 > tail1 > isLNat > tt > pair2 > cons2 > isNatural > nil
active1 > tail1 > isLNat > tt > pair2 > U612 > mark1 > nil
active1 > take2 > and2 > mark1 > nil
active1 > take2 > isLNat > tt > snd1 > U612 > mark1 > nil
active1 > take2 > isLNat > tt > natsFrom1 > mark1 > nil
active1 > take2 > isLNat > tt > natsFrom1 > isNatural > nil
active1 > take2 > isLNat > tt > afterNth2 > U113 > mark1 > nil
active1 > take2 > isLNat > tt > afterNth2 > isNatural > nil
active1 > take2 > isLNat > tt > pair2 > U212 > mark1 > nil
active1 > take2 > isLNat > tt > pair2 > cons2 > U814 > mark1 > nil
active1 > take2 > isLNat > tt > pair2 > cons2 > isNatural > nil
active1 > take2 > isLNat > tt > pair2 > U612 > mark1 > nil
active1 > sel2 > mark1 > nil
active1 > sel2 > isNatural > nil
0 > mark1 > nil
top > nil

Status:
U912: [2,1]
sel2: [2,1]
isNatural: []
mark1: [1]
and2: [1,2]
take2: [2,1]
splitAt2: [1,2]
U212: [2,1]
U712: [1,2]
U1013: [2,3,1]
active1: [1]
tt: []
U814: [2,3,4,1]
pair2: [2,1]
top: []
U513: [1,3,2]
natsFrom1: [1]
nil: []
isPLNat: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [2,1]
U113: [1,3,2]
head1: [1]
PAIR1: [1]
isLNat: []
0: []
cons2: [1,2]
U822: [1,2]
U612: [2,1]
U412: [1,2]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(75) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(76) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PAIR(ok(X1), ok(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)  =  mark
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1)
U31(x1, x2)  =  U31(x1)
U41(x1, x2)  =  U41(x2)
cons(x1, x2)  =  x1
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x3)
head(x1)  =  x1
afterNth(x1, x2)  =  x2
U61(x1, x2)  =  U61(x1)
U71(x1, x2)  =  x1
pair(x1, x2)  =  x2
nil  =  nil
U81(x1, x2, x3, x4)  =  x4
U82(x1, x2)  =  U82(x1)
U91(x1, x2)  =  x1
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  x2
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
PAIR1 > mark
active1 > U1013 > splitAt2 > ok1 > mark
active1 > fst1 > U211 > ok1 > mark
active1 > U111 > splitAt2 > ok1 > mark
active1 > U111 > snd1 > ok1 > mark
active1 > U311 > ok1 > mark
active1 > U411 > natsFrom1 > ok1 > mark
active1 > U411 > s1 > ok1 > mark
active1 > U511 > ok1 > mark
active1 > U611 > ok1 > mark
active1 > nil > ok1 > mark
active1 > U821 > ok1 > mark
active1 > and2 > ok1 > mark
active1 > isNatural1 > tt > splitAt2 > ok1 > mark
active1 > isNatural1 > tt > snd1 > ok1 > mark
active1 > isNatural1 > tt > natsFrom1 > ok1 > mark
active1 > tail1 > ok1 > mark
active1 > take2 > ok1 > mark
proper1 > U1013 > splitAt2 > ok1 > mark
proper1 > fst1 > U211 > ok1 > mark
proper1 > U111 > splitAt2 > ok1 > mark
proper1 > U111 > snd1 > ok1 > mark
proper1 > U311 > ok1 > mark
proper1 > U411 > natsFrom1 > ok1 > mark
proper1 > U411 > s1 > ok1 > mark
proper1 > U511 > ok1 > mark
proper1 > U611 > ok1 > mark
proper1 > nil > ok1 > mark
proper1 > U821 > ok1 > mark
proper1 > and2 > ok1 > mark
proper1 > isNatural1 > tt > splitAt2 > ok1 > mark
proper1 > isNatural1 > tt > snd1 > ok1 > mark
proper1 > isNatural1 > tt > natsFrom1 > ok1 > mark
proper1 > tail1 > ok1 > mark
proper1 > take2 > ok1 > mark
proper1 > 0 > mark
top > mark

Status:
U411: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [2,1]
U1013: [1,3,2]
isNatural1: [1]
active1: [1]
tt: []
s1: [1]
U111: [1]
proper1: [1]
top: []
nil: []
natsFrom1: [1]
tail1: [1]
U611: [1]
snd1: [1]
U821: [1]
ok1: [1]
PAIR1: [1]
0: []
U311: [1]
mark: []
fst1: [1]
U511: [1]
U211: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(77) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(78) 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)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
ok(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > splitAt2 > U712 > mark1
active1 > U1013 > splitAt2 > and2 > mark1
active1 > fst1 > U212 > mark1
active1 > fst1 > isPLNat > isNatural > tt
active1 > fst1 > isPLNat > isNatural > and2 > mark1
active1 > fst1 > isPLNat > isLNat > tt
active1 > fst1 > isPLNat > isLNat > and2 > mark1
active1 > snd1 > U612 > mark1
active1 > snd1 > isPLNat > isNatural > tt
active1 > snd1 > isPLNat > isNatural > and2 > mark1
active1 > snd1 > isPLNat > isLNat > tt
active1 > snd1 > isPLNat > isLNat > and2 > mark1
active1 > U312 > mark1
active1 > U412 > cons2 > mark1
active1 > U412 > s1 > mark1
active1 > afterNth2 > U113 > mark1
active1 > afterNth2 > and2 > mark1
active1 > nil > mark1
active1 > nil > tt
active1 > U814 > splitAt2 > U712 > mark1
active1 > U814 > splitAt2 > and2 > mark1
active1 > U814 > U822 > pair2 > U212 > mark1
active1 > U814 > U822 > pair2 > cons2 > mark1
active1 > U814 > U822 > pair2 > and2 > mark1
active1 > U912 > mark1
active1 > tail1 > and2 > mark1
active1 > take2 > and2 > mark1
active1 > sel2 > U513 > mark1
active1 > sel2 > isNatural > tt
active1 > sel2 > isNatural > and2 > mark1
active1 > sel2 > isLNat > tt
active1 > sel2 > isLNat > and2 > mark1

Status:
U912: [1,2]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [2,1]
U212: [2,1]
U1013: [1,2,3]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [1,2]
s1: [1]
top: []
U513: [1,2,3]
nil: []
isPLNat: []
afterNth2: [1,2]
tail1: [1]
U312: [1,2]
snd1: [1]
U113: [3,2,1]
isLNat: []
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
PAIR2: [1,2]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(79) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(80) PisEmptyProof (EQUIVALENT transformation)

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

(81) TRUE

(82) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(83) 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)  =  U711(x1, x2)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
0 > U712 > mark1
0 > U712 > nil
0 > isLNat1 > mark1
0 > isLNat1 > tt > nil
top > active1 > U1013 > mark1
top > active1 > splitAt2 > mark1
top > active1 > U113 > mark1
top > active1 > snd1 > U612 > mark1
top > active1 > snd1 > and2 > mark1
top > active1 > snd1 > isLNat1 > mark1
top > active1 > snd1 > isLNat1 > tt > nil
top > active1 > snd1 > isPLNat1 > mark1
top > active1 > U212 > mark1
top > active1 > U312 > mark1
top > active1 > U412 > mark1
top > active1 > cons2 > mark1
top > active1 > afterNth2 > mark1
top > active1 > U712 > mark1
top > active1 > U712 > nil
top > active1 > pair2 > mark1
top > active1 > U814 > mark1
top > active1 > U822 > mark1
top > active1 > U912 > mark1
top > active1 > isNatural1 > mark1
top > active1 > isNatural1 > tt > nil
top > active1 > take2 > mark1
top > active1 > sel2 > U513 > mark1

Status:
U912: [1,2]
sel2: [1,2]
U71^12: [1,2]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [2,1]
U212: [1,2]
U1013: [3,1,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [2,1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [2,3,1]
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(84) Obligation:

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

U711(ok(X1), ok(X2)) → U711(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(85) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U711(ok(X1), ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x2, x3)
tt  =  tt
mark(x1)  =  mark
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  x1
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1)
U31(x1, x2)  =  U31(x1)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  x1
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  x2
U61(x1, x2)  =  U61(x1)
U71(x1, x2)  =  x1
pair(x1, x2)  =  x1
nil  =  nil
U81(x1, x2, x3, x4)  =  x2
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  x2
0  =  0
sel(x1, x2)  =  x1
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
U71^11 > mark
active1 > U1012 > ok1 > top > mark
active1 > tt > fst1 > U211 > ok1 > top > mark
active1 > tt > fst1 > isPLNat1 > ok1 > top > mark
active1 > tt > snd1 > ok1 > top > mark
active1 > tt > natsFrom1 > ok1 > top > mark
active1 > tt > s1 > ok1 > top > mark
active1 > tt > head1 > ok1 > top > mark
active1 > tt > nil > ok1 > top > mark
active1 > U113 > snd1 > ok1 > top > mark
active1 > U311 > ok1 > top > mark
active1 > U412 > s1 > ok1 > top > mark
active1 > U513 > head1 > ok1 > top > mark
active1 > U611 > ok1 > top > mark
active1 > U822 > ok1 > top > mark
active1 > and2 > ok1 > top > mark
active1 > isLNat1 > isNatural1 > ok1 > top > mark
active1 > isLNat1 > isPLNat1 > ok1 > top > mark
active1 > tail1 > U911 > ok1 > top > mark
proper1 > U1012 > ok1 > top > mark
proper1 > tt > fst1 > U211 > ok1 > top > mark
proper1 > tt > fst1 > isPLNat1 > ok1 > top > mark
proper1 > tt > snd1 > ok1 > top > mark
proper1 > tt > natsFrom1 > ok1 > top > mark
proper1 > tt > s1 > ok1 > top > mark
proper1 > tt > head1 > ok1 > top > mark
proper1 > tt > nil > ok1 > top > mark
proper1 > U113 > snd1 > ok1 > top > mark
proper1 > U311 > ok1 > top > mark
proper1 > U412 > s1 > ok1 > top > mark
proper1 > U513 > head1 > ok1 > top > mark
proper1 > U611 > ok1 > top > mark
proper1 > U822 > ok1 > top > mark
proper1 > and2 > ok1 > top > mark
proper1 > isLNat1 > isNatural1 > ok1 > top > mark
proper1 > isLNat1 > isPLNat1 > ok1 > top > mark
proper1 > tail1 > U911 > ok1 > top > mark
proper1 > 0 > mark

Status:
and2: [1,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U911: [1]
U1012: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [2,1,3]
nil: []
natsFrom1: [1]
tail1: [1]
U611: [1]
snd1: [1]
head1: [1]
U113: [2,1,3]
ok1: [1]
0: []
U822: [1,2]
U311: [1]
U412: [2,1]
U71^11: [1]
mark: []
isLNat1: [1]
fst1: [1]
U211: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(86) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(87) PisEmptyProof (EQUIVALENT transformation)

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

(88) TRUE

(89) Obligation:

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

U611(ok(X1), ok(X2)) → U611(X1, X2)
U611(mark(X1), X2) → U611(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


U611(mark(X1), X2) → U611(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2)  =  U611(x1, x2)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
0 > U712 > mark1
0 > U712 > nil
0 > isLNat1 > mark1
0 > isLNat1 > tt > nil
top > active1 > U1013 > mark1
top > active1 > splitAt2 > mark1
top > active1 > U113 > mark1
top > active1 > snd1 > U612 > mark1
top > active1 > snd1 > and2 > mark1
top > active1 > snd1 > isLNat1 > mark1
top > active1 > snd1 > isLNat1 > tt > nil
top > active1 > snd1 > isPLNat1 > mark1
top > active1 > U212 > mark1
top > active1 > U312 > mark1
top > active1 > U412 > mark1
top > active1 > cons2 > mark1
top > active1 > afterNth2 > mark1
top > active1 > U712 > mark1
top > active1 > U712 > nil
top > active1 > pair2 > mark1
top > active1 > U814 > mark1
top > active1 > U822 > mark1
top > active1 > U912 > mark1
top > active1 > isNatural1 > mark1
top > active1 > isNatural1 > tt > nil
top > active1 > take2 > mark1
top > active1 > sel2 > U513 > mark1

Status:
U912: [1,2]
sel2: [1,2]
U61^12: [1,2]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [2,1]
U212: [1,2]
U1013: [3,1,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [2,1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [2,3,1]
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(91) Obligation:

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

U611(ok(X1), ok(X2)) → U611(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


U611(ok(X1), ok(X2)) → U611(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U611(x1, x2)  =  U611(x1)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x2, x3)
tt  =  tt
mark(x1)  =  mark
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  x1
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1)
U31(x1, x2)  =  U31(x1)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  x1
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  x2
U61(x1, x2)  =  U61(x1)
U71(x1, x2)  =  x1
pair(x1, x2)  =  x1
nil  =  nil
U81(x1, x2, x3, x4)  =  x2
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  x2
0  =  0
sel(x1, x2)  =  x1
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
U61^11 > mark
active1 > U1012 > ok1 > top > mark
active1 > tt > fst1 > U211 > ok1 > top > mark
active1 > tt > fst1 > isPLNat1 > ok1 > top > mark
active1 > tt > snd1 > ok1 > top > mark
active1 > tt > natsFrom1 > ok1 > top > mark
active1 > tt > s1 > ok1 > top > mark
active1 > tt > head1 > ok1 > top > mark
active1 > tt > nil > ok1 > top > mark
active1 > U113 > snd1 > ok1 > top > mark
active1 > U311 > ok1 > top > mark
active1 > U412 > s1 > ok1 > top > mark
active1 > U513 > head1 > ok1 > top > mark
active1 > U611 > ok1 > top > mark
active1 > U822 > ok1 > top > mark
active1 > and2 > ok1 > top > mark
active1 > isLNat1 > isNatural1 > ok1 > top > mark
active1 > isLNat1 > isPLNat1 > ok1 > top > mark
active1 > tail1 > U911 > ok1 > top > mark
proper1 > U1012 > ok1 > top > mark
proper1 > tt > fst1 > U211 > ok1 > top > mark
proper1 > tt > fst1 > isPLNat1 > ok1 > top > mark
proper1 > tt > snd1 > ok1 > top > mark
proper1 > tt > natsFrom1 > ok1 > top > mark
proper1 > tt > s1 > ok1 > top > mark
proper1 > tt > head1 > ok1 > top > mark
proper1 > tt > nil > ok1 > top > mark
proper1 > U113 > snd1 > ok1 > top > mark
proper1 > U311 > ok1 > top > mark
proper1 > U412 > s1 > ok1 > top > mark
proper1 > U513 > head1 > ok1 > top > mark
proper1 > U611 > ok1 > top > mark
proper1 > U822 > ok1 > top > mark
proper1 > and2 > ok1 > top > mark
proper1 > isLNat1 > isNatural1 > ok1 > top > mark
proper1 > isLNat1 > isPLNat1 > ok1 > top > mark
proper1 > tail1 > U911 > ok1 > top > mark
proper1 > 0 > mark

Status:
and2: [1,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U911: [1]
U1012: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [2,1,3]
nil: []
natsFrom1: [1]
tail1: [1]
U611: [1]
snd1: [1]
head1: [1]
U113: [2,1,3]
ok1: [1]
0: []
U822: [1,2]
U311: [1]
U412: [2,1]
U61^11: [1]
mark: []
isLNat1: [1]
fst1: [1]
U211: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(93) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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:

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


AFTERNTH(ok(X1), ok(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)  =  x1
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  x2
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  x2
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
top > active1 > U1012 > splitAt1 > ok1
top > active1 > fst1 > isLNat1 > tt > afterNth2 > ok1
top > active1 > fst1 > isLNat1 > and1 > ok1
top > active1 > fst1 > isLNat1 > isPLNat1 > ok1
top > active1 > U113 > splitAt1 > ok1
top > active1 > snd1 > U612 > ok1
top > active1 > snd1 > and1 > ok1
top > active1 > snd1 > isPLNat1 > ok1
top > active1 > U212 > ok1
top > active1 > U412 > ok1
top > active1 > cons2 > isLNat1 > tt > afterNth2 > ok1
top > active1 > cons2 > isLNat1 > and1 > ok1
top > active1 > cons2 > isLNat1 > isPLNat1 > ok1
top > active1 > head1 > ok1
top > active1 > nil > tt > afterNth2 > ok1
top > active1 > U812 > splitAt1 > ok1
top > active1 > U812 > U822 > pair2 > and1 > ok1
top > active1 > U912 > ok1
top > active1 > take2 > isLNat1 > tt > afterNth2 > ok1
top > active1 > take2 > isLNat1 > and1 > ok1
top > active1 > take2 > isLNat1 > isPLNat1 > ok1
top > active1 > sel2 > U513 > ok1
top > active1 > sel2 > and1 > ok1
top > proper1 > U1012 > splitAt1 > ok1
top > proper1 > fst1 > isLNat1 > tt > afterNth2 > ok1
top > proper1 > fst1 > isLNat1 > and1 > ok1
top > proper1 > fst1 > isLNat1 > isPLNat1 > ok1
top > proper1 > U113 > splitAt1 > ok1
top > proper1 > snd1 > U612 > ok1
top > proper1 > snd1 > and1 > ok1
top > proper1 > snd1 > isPLNat1 > ok1
top > proper1 > U212 > ok1
top > proper1 > U412 > ok1
top > proper1 > cons2 > isLNat1 > tt > afterNth2 > ok1
top > proper1 > cons2 > isLNat1 > and1 > ok1
top > proper1 > cons2 > isLNat1 > isPLNat1 > ok1
top > proper1 > head1 > ok1
top > proper1 > nil > tt > afterNth2 > ok1
top > proper1 > U812 > splitAt1 > ok1
top > proper1 > U812 > U822 > pair2 > and1 > ok1
top > proper1 > U912 > ok1
top > proper1 > take2 > isLNat1 > tt > afterNth2 > ok1
top > proper1 > take2 > isLNat1 > and1 > ok1
top > proper1 > take2 > isLNat1 > isPLNat1 > ok1
top > proper1 > 0 > tt > afterNth2 > ok1
top > proper1 > sel2 > U513 > ok1
top > proper1 > sel2 > and1 > ok1

Status:
U912: [1,2]
sel2: [1,2]
take2: [2,1]
U212: [1,2]
isPLNat1: [1]
active1: [1]
tt: []
U1012: [2,1]
pair2: [2,1]
proper1: [1]
top: []
U513: [2,3,1]
nil: []
afterNth2: [1,2]
snd1: [1]
head1: [1]
U113: [1,3,2]
ok1: [1]
0: []
cons2: [1,2]
U822: [1,2]
U812: [1,2]
U612: [2,1]
U412: [1,2]
isLNat1: [1]
fst1: [1]
and1: [1]
AFTERNTH2: [2,1]
splitAt1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(98) 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)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


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)  =  AFTERNTH(x1)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > pair2 > U212 > mark1
active1 > tt > pair2 > cons2 > mark1
active1 > tt > pair2 > U612 > mark1
active1 > tt > U822 > cons2 > mark1
active1 > tt > ok > U1013 > mark1
active1 > tt > ok > U212 > mark1
active1 > tt > ok > U312 > mark1
active1 > tt > ok > U412 > mark1
active1 > tt > ok > cons2 > mark1
active1 > tt > ok > afterNth2 > U113 > mark1
active1 > tt > ok > U612 > mark1
active1 > tt > ok > U814 > splitAt2 > U712 > nil > mark1
active1 > tt > ok > U912 > mark1
active1 > tt > ok > isNatural1 > mark1
active1 > tt > ok > isPLNat1 > mark1
active1 > tt > ok > sel2 > U513 > mark1
active1 > and2 > mark1
active1 > take2 > U1013 > mark1
active1 > take2 > isNatural1 > mark1
proper1 > tt > pair2 > U212 > mark1
proper1 > tt > pair2 > cons2 > mark1
proper1 > tt > pair2 > U612 > mark1
proper1 > tt > U822 > cons2 > mark1
proper1 > tt > ok > U1013 > mark1
proper1 > tt > ok > U212 > mark1
proper1 > tt > ok > U312 > mark1
proper1 > tt > ok > U412 > mark1
proper1 > tt > ok > cons2 > mark1
proper1 > tt > ok > afterNth2 > U113 > mark1
proper1 > tt > ok > U612 > mark1
proper1 > tt > ok > U814 > splitAt2 > U712 > nil > mark1
proper1 > tt > ok > U912 > mark1
proper1 > tt > ok > isNatural1 > mark1
proper1 > tt > ok > isPLNat1 > mark1
proper1 > tt > ok > sel2 > U513 > mark1
proper1 > and2 > mark1
proper1 > take2 > U1013 > mark1
proper1 > take2 > isNatural1 > mark1
proper1 > 0 > ok > U1013 > mark1
proper1 > 0 > ok > U212 > mark1
proper1 > 0 > ok > U312 > mark1
proper1 > 0 > ok > U412 > mark1
proper1 > 0 > ok > cons2 > mark1
proper1 > 0 > ok > afterNth2 > U113 > mark1
proper1 > 0 > ok > U612 > mark1
proper1 > 0 > ok > U814 > splitAt2 > U712 > nil > mark1
proper1 > 0 > ok > U912 > mark1
proper1 > 0 > ok > isNatural1 > mark1
proper1 > 0 > ok > isPLNat1 > mark1
proper1 > 0 > ok > sel2 > U513 > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
AFTERNTH1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [1,3,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [3,1,2,4]
pair2: [1,2]
proper1: [1]
top: []
U513: [2,1,3]
nil: []
afterNth2: [1,2]
U312: [2,1]
U113: [1,2,3]
0: []
cons2: [1,2]
U822: [2,1]
U612: [2,1]
U412: [1,2]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(100) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


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)  =  x2
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  x1
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
ok(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
0 > U712 > mark1
0 > U712 > nil
top > active1 > tt > splitAt2 > U814 > mark1
top > active1 > tt > snd1 > mark1
top > active1 > tt > head1 > mark1
top > active1 > tt > pair2 > cons2 > U312 > mark1
top > active1 > tt > pair2 > cons2 > U814 > mark1
top > active1 > tt > nil
top > active1 > tt > U822 > cons2 > U312 > mark1
top > active1 > tt > U822 > cons2 > U814 > mark1
top > active1 > U212 > mark1
top > active1 > U412 > mark1
top > active1 > s1 > U814 > mark1
top > active1 > U513 > head1 > mark1
top > active1 > afterNth2 > U113 > mark1
top > active1 > U612 > mark1
top > active1 > U712 > mark1
top > active1 > U712 > nil
top > active1 > U912 > mark1
top > active1 > and2 > mark1
top > active1 > isPLNat1 > mark1
top > active1 > take2 > U1013 > mark1
top > active1 > sel2 > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U712: [1,2]
U212: [1,2]
U1013: [3,2,1]
isPLNat1: [1]
active1: [1]
tt: []
U814: [1,2,4,3]
pair2: [2,1]
s1: [1]
top: []
U513: [3,1,2]
nil: []
afterNth2: [2,1]
U312: [1,2]
snd1: [1]
head1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(102) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(103) PisEmptyProof (EQUIVALENT transformation)

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

(104) TRUE

(105) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(106) 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: Combined order from the following AFS and order.
HEAD(x1)  =  HEAD(x1)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
HEAD1 > mark1
active1 > tt > fst1 > isLNat1 > mark1
active1 > tt > splitAt2 > mark1
active1 > tt > snd1 > mark1
active1 > tt > afterNth2 > isLNat1 > mark1
active1 > tt > nil > mark1
active1 > tt > U822 > cons2 > mark1
active1 > tt > U822 > pair2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > U412 > cons2 > mark1
active1 > U513 > afterNth2 > isLNat1 > mark1
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > nil > mark1
active1 > U814 > splitAt2 > mark1
active1 > U814 > U822 > cons2 > mark1
active1 > U814 > U822 > pair2 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > take2 > U1013 > fst1 > isLNat1 > mark1
active1 > take2 > U1013 > splitAt2 > mark1
active1 > sel2 > isLNat1 > mark1
0 > isLNat1 > mark1
top > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
HEAD1: [1]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [3,1,2,4]
pair2: [2,1]
top: []
U513: [1,3,2]
nil: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(107) Obligation:

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

HEAD(ok(X)) → HEAD(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


HEAD(ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
HEAD1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
HEAD1: [1]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(109) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(110) PisEmptyProof (EQUIVALENT transformation)

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

(111) TRUE

(112) Obligation:

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

U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)
U511(mark(X1), X2, X3) → U511(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(113) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U511(mark(X1), X2, X3) → U511(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U511(x1, x2, x3)  =  U511(x1, x2, x3)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > fst1 > mark1
active1 > tt > splitAt2 > U712 > nil > mark1
active1 > tt > splitAt2 > U814 > mark1
active1 > tt > splitAt2 > and2 > mark1
active1 > tt > head1 > U312 > mark1
active1 > tt > head1 > and2 > mark1
active1 > tt > afterNth2 > U113 > mark1
active1 > tt > afterNth2 > and2 > mark1
active1 > tt > pair2 > U212 > mark1
active1 > tt > pair2 > cons2 > U814 > mark1
active1 > tt > pair2 > and2 > mark1
active1 > tt > U822 > mark1
active1 > U412 > cons2 > U814 > mark1
active1 > U513 > afterNth2 > U113 > mark1
active1 > U513 > afterNth2 > and2 > mark1
active1 > U612 > mark1
active1 > U912 > mark1
active1 > isNatural1 > and2 > mark1
active1 > isPLNat1 > mark1
active1 > tail1 > and2 > mark1
active1 > take2 > U1013 > mark1
active1 > take2 > and2 > mark1
active1 > sel2 > mark1
0 > U712 > nil > mark1

Status:
U912: [1,2]
sel2: [2,1]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [2,1]
U212: [2,1]
U1013: [2,1,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [1,2]
top: []
U513: [1,3,2]
nil: []
afterNth2: [1,2]
tail1: [1]
U312: [2,1]
head1: [1]
U113: [2,3,1]
0: []
U51^13: [1,2,3]
cons2: [1,2]
U822: [2,1]
U612: [1,2]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(114) Obligation:

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

U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(115) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U511(x1, x2, x3)  =  U511(x1, x2)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x3)
tt  =  tt
mark(x1)  =  x1
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  U11(x3)
snd(x1)  =  x1
U21(x1, x2)  =  x2
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  tail(x1)
take(x1, x2)  =  x2
0  =  0
sel(x1, x2)  =  x2
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
U51^12 > ok1
active1 > U1011 > ok1
active1 > tt > fst1 > ok1
active1 > tt > s1 > ok1
active1 > tt > head1 > ok1
active1 > tt > afterNth1 > U111 > ok1
active1 > tt > afterNth1 > isNatural1 > ok1
active1 > tt > pair2 > cons2 > U813 > ok1
active1 > tt > pair2 > cons2 > isNatural1 > ok1
active1 > tt > pair2 > U612 > ok1
active1 > tt > nil > ok1
active1 > tt > U822 > cons2 > U813 > ok1
active1 > tt > U822 > cons2 > isNatural1 > ok1
active1 > U312 > ok1
active1 > U412 > ok1
active1 > U512 > ok1
active1 > U712 > ok1
active1 > U912 > ok1
active1 > and1 > ok1
active1 > isLNat1 > isNatural1 > ok1
active1 > tail1 > ok1
0 > U712 > ok1
0 > isLNat1 > isNatural1 > ok1
top > proper1 > U1011 > ok1
top > proper1 > fst1 > ok1
top > proper1 > U312 > ok1
top > proper1 > U412 > ok1
top > proper1 > s1 > ok1
top > proper1 > U512 > ok1
top > proper1 > head1 > ok1
top > proper1 > afterNth1 > U111 > ok1
top > proper1 > afterNth1 > isNatural1 > ok1
top > proper1 > U712 > ok1
top > proper1 > pair2 > cons2 > U813 > ok1
top > proper1 > pair2 > cons2 > isNatural1 > ok1
top > proper1 > pair2 > U612 > ok1
top > proper1 > U822 > cons2 > U813 > ok1
top > proper1 > U822 > cons2 > isNatural1 > ok1
top > proper1 > U912 > ok1
top > proper1 > and1 > ok1
top > proper1 > isLNat1 > isNatural1 > ok1
top > proper1 > tail1 > ok1

Status:
U912: [2,1]
U51^12: [1,2]
U712: [1,2]
U512: [2,1]
isNatural1: [1]
active1: [1]
tt: []
pair2: [1,2]
s1: [1]
U111: [1]
proper1: [1]
top: []
nil: []
tail1: [1]
U312: [1,2]
U813: [1,2,3]
head1: [1]
U1011: [1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [1,2]
isLNat1: [1]
fst1: [1]
and1: [1]
afterNth1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(116) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(117) PisEmptyProof (EQUIVALENT transformation)

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

(118) TRUE

(119) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(120) 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: Combined order from the following AFS and order.
S(x1)  =  S(x1)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
S1 > mark1
active1 > tt > fst1 > isLNat1 > mark1
active1 > tt > splitAt2 > mark1
active1 > tt > snd1 > mark1
active1 > tt > afterNth2 > isLNat1 > mark1
active1 > tt > nil > mark1
active1 > tt > U822 > cons2 > mark1
active1 > tt > U822 > pair2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > U412 > cons2 > mark1
active1 > U513 > afterNth2 > isLNat1 > mark1
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > nil > mark1
active1 > U814 > splitAt2 > mark1
active1 > U814 > U822 > cons2 > mark1
active1 > U814 > U822 > pair2 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > take2 > U1013 > fst1 > isLNat1 > mark1
active1 > take2 > U1013 > splitAt2 > mark1
active1 > sel2 > isLNat1 > mark1
0 > isLNat1 > mark1
top > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [3,1,2,4]
pair2: [2,1]
top: []
U513: [1,3,2]
nil: []
S1: [1]
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(121) Obligation:

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

S(ok(X)) → S(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(122) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


S(ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
S1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
S1: [1]
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(123) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(124) PisEmptyProof (EQUIVALENT transformation)

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

(125) TRUE

(126) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(127) 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: Combined order from the following AFS and order.
NATSFROM(x1)  =  NATSFROM(x1)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
NATSFROM1 > mark1
active1 > tt > fst1 > isLNat1 > mark1
active1 > tt > splitAt2 > mark1
active1 > tt > snd1 > mark1
active1 > tt > afterNth2 > isLNat1 > mark1
active1 > tt > nil > mark1
active1 > tt > U822 > cons2 > mark1
active1 > tt > U822 > pair2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > U412 > cons2 > mark1
active1 > U513 > afterNth2 > isLNat1 > mark1
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > nil > mark1
active1 > U814 > splitAt2 > mark1
active1 > U814 > U822 > cons2 > mark1
active1 > U814 > U822 > pair2 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > take2 > U1013 > fst1 > isLNat1 > mark1
active1 > take2 > U1013 > splitAt2 > mark1
active1 > sel2 > isLNat1 > mark1
0 > isLNat1 > mark1
top > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [3,1,2,4]
pair2: [2,1]
top: []
U513: [1,3,2]
nil: []
NATSFROM1: [1]
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(128) Obligation:

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

NATSFROM(ok(X)) → NATSFROM(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(129) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


NATSFROM(ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
NATSFROM1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
NATSFROM1: [1]
nil: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(130) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(131) PisEmptyProof (EQUIVALENT transformation)

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

(132) TRUE

(133) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


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)  =  CONS(x1, x2)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > fst1 > mark1
active1 > tt > fst1 > mark1
active1 > tt > snd1 > mark1
active1 > tt > natsFrom1 > U412 > mark1
active1 > tt > afterNth2 > mark1
active1 > tt > pair2 > mark1
active1 > tt > nil
active1 > splitAt2 > U712 > mark1
active1 > splitAt2 > U712 > nil
active1 > splitAt2 > U814 > mark1
active1 > splitAt2 > and2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > s1 > mark1
active1 > U513 > afterNth2 > mark1
active1 > head1 > mark1
active1 > U612 > mark1
active1 > U822 > cons2 > mark1
active1 > U822 > pair2 > mark1
active1 > U912 > mark1
active1 > tail1 > and2 > mark1
active1 > take2 > mark1
active1 > sel2 > mark1
0 > mark1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U712: [1,2]
U212: [2,1]
U1013: [1,2,3]
active1: [1]
tt: []
U814: [3,1,4,2]
CONS2: [1,2]
pair2: [1,2]
s1: [1]
top: []
U513: [3,2,1]
nil: []
natsFrom1: [1]
afterNth2: [1,2]
tail1: [1]
U312: [1,2]
snd1: [1]
head1: [1]
U113: [1,3,2]
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(135) Obligation:

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

CONS(ok(X1), ok(X2)) → CONS(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


CONS(ok(X1), ok(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)  =  x2
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  x3
tt  =  tt
mark(x1)  =  mark
fst(x1)  =  x1
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  x3
snd(x1)  =  x1
U21(x1, x2)  =  x1
U31(x1, x2)  =  x1
U41(x1, x2)  =  x1
cons(x1, x2)  =  x2
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  x3
head(x1)  =  x1
afterNth(x1, x2)  =  x2
U61(x1, x2)  =  x2
U71(x1, x2)  =  x1
pair(x1, x2)  =  x2
nil  =  nil
U81(x1, x2, x3, x4)  =  x2
U82(x1, x2)  =  x2
U91(x1, x2)  =  x2
and(x1, x2)  =  x1
isNatural(x1)  =  x1
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  x2
0  =  0
sel(x1, x2)  =  x2
proper(x1)  =  proper
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
top > proper > ok1 > active1 > tt > mark
top > proper > nil > tt > mark
top > proper > 0 > tt > mark

Status:
active1: [1]
tt: []
proper: []
mark: []
ok1: [1]
top: []
0: []
nil: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(137) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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:

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


U411(ok(X1), ok(X2)) → U411(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2)  =  x1
ok(x1)  =  ok(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  x2
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  x2
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > fst1 > ok1
active1 > tt > splitAt2 > U712 > pair2 > ok1
active1 > tt > splitAt2 > isNatural1 > and2 > ok1
active1 > tt > splitAt2 > isNatural1 > isLNat1 > ok1
active1 > tt > cons2 > U312 > ok1
active1 > tt > cons2 > U912 > ok1
active1 > tt > cons2 > and2 > ok1
active1 > tt > cons2 > isLNat1 > ok1
active1 > tt > natsFrom1 > ok1
active1 > tt > s1 > ok1
active1 > tt > afterNth2 > U113 > snd1 > ok1
active1 > tt > nil > ok1
active1 > tt > U822 > pair2 > ok1
active1 > U513 > afterNth2 > U113 > snd1 > ok1
active1 > U611 > ok1
active1 > U814 > splitAt2 > U712 > pair2 > ok1
active1 > U814 > splitAt2 > isNatural1 > and2 > ok1
active1 > U814 > splitAt2 > isNatural1 > isLNat1 > ok1
active1 > U814 > U822 > pair2 > ok1
active1 > isPLNat1 > and2 > ok1
active1 > isPLNat1 > isLNat1 > ok1
active1 > take2 > U1013 > fst1 > ok1
active1 > sel2 > ok1
0 > U712 > pair2 > ok1
0 > isLNat1 > ok1
top > proper1 > cons2 > U312 > ok1
top > proper1 > cons2 > U912 > ok1
top > proper1 > cons2 > and2 > ok1
top > proper1 > cons2 > isLNat1 > ok1
top > proper1 > natsFrom1 > ok1
top > proper1 > s1 > ok1
top > proper1 > U513 > afterNth2 > U113 > snd1 > ok1
top > proper1 > U611 > ok1
top > proper1 > nil > ok1
top > proper1 > U814 > splitAt2 > U712 > pair2 > ok1
top > proper1 > U814 > splitAt2 > isNatural1 > and2 > ok1
top > proper1 > U814 > splitAt2 > isNatural1 > isLNat1 > ok1
top > proper1 > U814 > U822 > pair2 > ok1
top > proper1 > isPLNat1 > and2 > ok1
top > proper1 > isPLNat1 > isLNat1 > ok1
top > proper1 > take2 > U1013 > fst1 > ok1
top > proper1 > sel2 > ok1

Status:
U912: [1,2]
sel2: [2,1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [1,2]
U1013: [2,1,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [4,2,1,3]
pair2: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
natsFrom1: [1]
afterNth2: [2,1]
U611: [1]
U312: [2,1]
snd1: [1]
U113: [2,1,3]
ok1: [1]
0: []
cons2: [2,1]
U822: [1,2]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(142) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


U411(mark(X1), X2) → U411(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U411(x1, x2)  =  U411(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
ok(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
top > active1 > U1013 > fst1 > mark1
top > active1 > tt > fst1 > mark1
top > active1 > tt > cons2 > U912 > mark1
top > active1 > tt > natsFrom1 > mark1
top > active1 > tt > afterNth2 > mark1
top > active1 > tt > U822 > mark1
top > active1 > splitAt2 > U712 > mark1
top > active1 > splitAt2 > U814 > U822 > mark1
top > active1 > splitAt2 > isNatural1 > mark1
top > active1 > U113 > mark1
top > active1 > snd1 > U612 > mark1
top > active1 > snd1 > isPLNat1 > mark1
top > active1 > U212 > mark1
top > active1 > U312 > mark1
top > active1 > U412 > mark1
top > active1 > U513 > afterNth2 > mark1
top > active1 > pair2 > cons2 > U912 > mark1
top > active1 > pair2 > U612 > mark1
top > active1 > nil > mark1
top > active1 > and2 > mark1
top > active1 > tail1 > mark1
top > active1 > take2 > mark1
top > active1 > sel2 > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [2,1]
U712: [1,2]
U212: [1,2]
U1013: [2,3,1]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [1,2]
top: []
U513: [1,3,2]
nil: []
natsFrom1: [1]
afterNth2: [1,2]
tail1: [1]
U312: [1,2]
snd1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [1,2]
U41^12: [2,1]
U612: [1,2]
U412: [1,2]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(144) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(145) PisEmptyProof (EQUIVALENT transformation)

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

(146) TRUE

(147) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(148) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U311(ok(X1), ok(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)  =  x2
ok(x1)  =  ok(x1)
mark(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  x2
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U212 > ok1
active1 > U412 > ok1
active1 > U513 > head1 > ok1
active1 > U513 > afterNth2 > U112 > ok1
active1 > U513 > afterNth2 > and2 > ok1
active1 > U612 > ok1
active1 > U712 > pair2 > ok1
active1 > nil > tt > fst1 > and2 > ok1
active1 > nil > tt > cons2 > U813 > splitAt2 > ok1
active1 > nil > tt > cons2 > U813 > U822 > pair2 > ok1
active1 > nil > tt > cons2 > isLNat1 > and2 > ok1
active1 > nil > tt > head1 > ok1
active1 > nil > tt > afterNth2 > U112 > ok1
active1 > nil > tt > afterNth2 > and2 > ok1
active1 > U912 > ok1
active1 > isNatural1 > isLNat1 > and2 > ok1
active1 > isPLNat1 > isLNat1 > and2 > ok1
active1 > take2 > U1013 > fst1 > and2 > ok1
active1 > take2 > U1013 > splitAt2 > ok1
active1 > sel2 > and2 > ok1
0 > U712 > pair2 > ok1
0 > isLNat1 > and2 > ok1
top > proper1 > U212 > ok1
top > proper1 > U412 > ok1
top > proper1 > cons2 > U813 > splitAt2 > ok1
top > proper1 > cons2 > U813 > U822 > pair2 > ok1
top > proper1 > cons2 > isLNat1 > and2 > ok1
top > proper1 > U513 > head1 > ok1
top > proper1 > U513 > afterNth2 > U112 > ok1
top > proper1 > U513 > afterNth2 > and2 > ok1
top > proper1 > U612 > ok1
top > proper1 > U712 > pair2 > ok1
top > proper1 > U912 > ok1
top > proper1 > isNatural1 > isLNat1 > and2 > ok1
top > proper1 > isPLNat1 > isLNat1 > and2 > ok1
top > proper1 > take2 > U1013 > fst1 > and2 > ok1
top > proper1 > take2 > U1013 > splitAt2 > ok1
top > proper1 > sel2 > and2 > ok1

Status:
U912: [1,2]
sel2: [2,1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [1,2,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
pair2: [1,2]
proper1: [1]
top: []
U513: [3,2,1]
nil: []
afterNth2: [2,1]
U813: [2,1,3]
head1: [1]
ok1: [1]
U112: [1,2]
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(149) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(150) 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)  =  U311(x1)
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > splitAt2 > mark1
active1 > tt > splitAt2 > ok
active1 > tt > snd1 > mark1
active1 > tt > snd1 > ok
active1 > tt > cons2 > mark1
active1 > tt > cons2 > ok
active1 > tt > afterNth2 > mark1
active1 > tt > afterNth2 > ok
active1 > tt > pair2 > mark1
active1 > tt > pair2 > ok
active1 > tt > nil > mark1
active1 > tt > nil > ok
active1 > tt > U822 > mark1
active1 > tt > U822 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U1013 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U1013 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > splitAt2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > splitAt2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U113 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U113 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > snd1 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > snd1 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U212 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U212 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U312 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U312 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U412 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U412 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > cons2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > cons2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U513 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U513 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > afterNth2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > afterNth2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U612 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U612 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U712 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U712 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > pair2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > pair2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U814 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U814 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U822 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U822 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > U912 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > U912 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > and2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > and2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > take2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > take2 > ok
active1 > isPLNat > isLNat > isNatural > proper1 > 0
active1 > isPLNat > isLNat > isNatural > proper1 > sel2 > mark1
active1 > isPLNat > isLNat > isNatural > proper1 > sel2 > ok
top > proper1 > U1013 > mark1
top > proper1 > U1013 > ok
top > proper1 > splitAt2 > mark1
top > proper1 > splitAt2 > ok
top > proper1 > U113 > mark1
top > proper1 > U113 > ok
top > proper1 > snd1 > mark1
top > proper1 > snd1 > ok
top > proper1 > U212 > mark1
top > proper1 > U212 > ok
top > proper1 > U312 > mark1
top > proper1 > U312 > ok
top > proper1 > U412 > mark1
top > proper1 > U412 > ok
top > proper1 > cons2 > mark1
top > proper1 > cons2 > ok
top > proper1 > U513 > mark1
top > proper1 > U513 > ok
top > proper1 > afterNth2 > mark1
top > proper1 > afterNth2 > ok
top > proper1 > U612 > mark1
top > proper1 > U612 > ok
top > proper1 > U712 > mark1
top > proper1 > U712 > ok
top > proper1 > pair2 > mark1
top > proper1 > pair2 > ok
top > proper1 > U814 > mark1
top > proper1 > U814 > ok
top > proper1 > U822 > mark1
top > proper1 > U822 > ok
top > proper1 > U912 > mark1
top > proper1 > U912 > ok
top > proper1 > and2 > mark1
top > proper1 > and2 > ok
top > proper1 > take2 > mark1
top > proper1 > take2 > ok
top > proper1 > 0
top > proper1 > sel2 > mark1
top > proper1 > sel2 > ok

Status:
U912: [1,2]
sel2: [2,1]
isNatural: []
U31^11: [1]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [2,3,1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
proper1: [1]
top: []
U513: [1,3,2]
nil: []
isPLNat: []
afterNth2: [2,1]
U312: [1,2]
snd1: [1]
U113: [2,3,1]
isLNat: []
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [1,2]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(151) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(152) PisEmptyProof (EQUIVALENT transformation)

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

(153) TRUE

(154) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


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)  =  U211(x1, x2)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
0 > U712 > mark1
0 > U712 > nil
0 > isLNat1 > mark1
0 > isLNat1 > tt > nil
top > active1 > U1013 > mark1
top > active1 > splitAt2 > mark1
top > active1 > U113 > mark1
top > active1 > snd1 > U612 > mark1
top > active1 > snd1 > and2 > mark1
top > active1 > snd1 > isLNat1 > mark1
top > active1 > snd1 > isLNat1 > tt > nil
top > active1 > snd1 > isPLNat1 > mark1
top > active1 > U212 > mark1
top > active1 > U312 > mark1
top > active1 > U412 > mark1
top > active1 > cons2 > mark1
top > active1 > afterNth2 > mark1
top > active1 > U712 > mark1
top > active1 > U712 > nil
top > active1 > pair2 > mark1
top > active1 > U814 > mark1
top > active1 > U822 > mark1
top > active1 > U912 > mark1
top > active1 > isNatural1 > mark1
top > active1 > isNatural1 > tt > nil
top > active1 > take2 > mark1
top > active1 > sel2 > U513 > mark1

Status:
U912: [1,2]
sel2: [1,2]
U21^12: [1,2]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [2,1]
U212: [1,2]
U1013: [3,1,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [2,1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [2,3,1]
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(156) Obligation:

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

U211(ok(X1), ok(X2)) → U211(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(157) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U211(ok(X1), ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x2, x3)
tt  =  tt
mark(x1)  =  mark
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  x1
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1)
U31(x1, x2)  =  U31(x1)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  x1
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  x2
U61(x1, x2)  =  U61(x1)
U71(x1, x2)  =  x1
pair(x1, x2)  =  x1
nil  =  nil
U81(x1, x2, x3, x4)  =  x2
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  x2
0  =  0
sel(x1, x2)  =  x1
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
U21^11 > mark
active1 > U1012 > ok1 > top > mark
active1 > tt > fst1 > U211 > ok1 > top > mark
active1 > tt > fst1 > isPLNat1 > ok1 > top > mark
active1 > tt > snd1 > ok1 > top > mark
active1 > tt > natsFrom1 > ok1 > top > mark
active1 > tt > s1 > ok1 > top > mark
active1 > tt > head1 > ok1 > top > mark
active1 > tt > nil > ok1 > top > mark
active1 > U113 > snd1 > ok1 > top > mark
active1 > U311 > ok1 > top > mark
active1 > U412 > s1 > ok1 > top > mark
active1 > U513 > head1 > ok1 > top > mark
active1 > U611 > ok1 > top > mark
active1 > U822 > ok1 > top > mark
active1 > and2 > ok1 > top > mark
active1 > isLNat1 > isNatural1 > ok1 > top > mark
active1 > isLNat1 > isPLNat1 > ok1 > top > mark
active1 > tail1 > U911 > ok1 > top > mark
proper1 > U1012 > ok1 > top > mark
proper1 > tt > fst1 > U211 > ok1 > top > mark
proper1 > tt > fst1 > isPLNat1 > ok1 > top > mark
proper1 > tt > snd1 > ok1 > top > mark
proper1 > tt > natsFrom1 > ok1 > top > mark
proper1 > tt > s1 > ok1 > top > mark
proper1 > tt > head1 > ok1 > top > mark
proper1 > tt > nil > ok1 > top > mark
proper1 > U113 > snd1 > ok1 > top > mark
proper1 > U311 > ok1 > top > mark
proper1 > U412 > s1 > ok1 > top > mark
proper1 > U513 > head1 > ok1 > top > mark
proper1 > U611 > ok1 > top > mark
proper1 > U822 > ok1 > top > mark
proper1 > and2 > ok1 > top > mark
proper1 > isLNat1 > isNatural1 > ok1 > top > mark
proper1 > isLNat1 > isPLNat1 > ok1 > top > mark
proper1 > tail1 > U911 > ok1 > top > mark
proper1 > 0 > mark

Status:
and2: [1,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U911: [1]
U1012: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [2,1,3]
nil: []
natsFrom1: [1]
tail1: [1]
U611: [1]
snd1: [1]
head1: [1]
U113: [2,1,3]
ok1: [1]
0: []
U822: [1,2]
U311: [1]
U412: [2,1]
mark: []
isLNat1: [1]
fst1: [1]
U21^11: [1]
U211: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(158) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(159) PisEmptyProof (EQUIVALENT transformation)

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

(160) TRUE

(161) Obligation:

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

SND(ok(X)) → SND(X)
SND(mark(X)) → SND(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


SND(mark(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)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
SND1 > mark1
active1 > tt > fst1 > isLNat1 > mark1
active1 > tt > splitAt2 > mark1
active1 > tt > snd1 > mark1
active1 > tt > afterNth2 > isLNat1 > mark1
active1 > tt > nil > mark1
active1 > tt > U822 > cons2 > mark1
active1 > tt > U822 > pair2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > U412 > cons2 > mark1
active1 > U513 > afterNth2 > isLNat1 > mark1
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > nil > mark1
active1 > U814 > splitAt2 > mark1
active1 > U814 > U822 > cons2 > mark1
active1 > U814 > U822 > pair2 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > take2 > U1013 > fst1 > isLNat1 > mark1
active1 > take2 > U1013 > splitAt2 > mark1
active1 > sel2 > isLNat1 > mark1
0 > isLNat1 > mark1
top > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [1,3,2]
SND1: [1]
active1: [1]
tt: []
U814: [3,1,2,4]
pair2: [2,1]
top: []
U513: [1,3,2]
nil: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(163) Obligation:

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

SND(ok(X)) → SND(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


SND(ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
SND1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
SND1: [1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [2,1]
tail1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(165) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(166) PisEmptyProof (EQUIVALENT transformation)

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

(167) TRUE

(168) Obligation:

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

U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
U111(mark(X1), X2, X3) → U111(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(169) 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)  =  U111(x1, x2, x3)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > splitAt2 > U814 > mark1 > U11^13
active1 > U1013 > splitAt2 > and2 > mark1 > U11^13
active1 > snd1 > U612 > mark1 > U11^13
active1 > snd1 > isPLNat
active1 > U312 > mark1 > U11^13
active1 > U412 > cons2 > U814 > mark1 > U11^13
active1 > U412 > natsFrom1 > mark1 > U11^13
active1 > U412 > s1 > U814 > mark1 > U11^13
active1 > U513 > afterNth2 > U113 > mark1 > U11^13
active1 > U712 > pair2 > U212 > mark1 > U11^13
active1 > U712 > pair2 > U612 > mark1 > U11^13
active1 > nil > mark1 > U11^13
active1 > nil > tt
active1 > U822 > cons2 > U814 > mark1 > U11^13
active1 > U822 > pair2 > U212 > mark1 > U11^13
active1 > U822 > pair2 > U612 > mark1 > U11^13
active1 > U912 > mark1 > U11^13
active1 > isLNat > isNatural > tt
active1 > isLNat > isNatural > and2 > mark1 > U11^13
active1 > isLNat > isPLNat
active1 > take2 > and2 > mark1 > U11^13
active1 > sel2 > isNatural > tt
active1 > sel2 > isNatural > and2 > mark1 > U11^13
proper1 > U1013 > splitAt2 > U814 > mark1 > U11^13
proper1 > U1013 > splitAt2 > and2 > mark1 > U11^13
proper1 > snd1 > U612 > mark1 > U11^13
proper1 > snd1 > isPLNat
proper1 > U312 > mark1 > U11^13
proper1 > U412 > cons2 > U814 > mark1 > U11^13
proper1 > U412 > natsFrom1 > mark1 > U11^13
proper1 > U412 > s1 > U814 > mark1 > U11^13
proper1 > U513 > afterNth2 > U113 > mark1 > U11^13
proper1 > U712 > pair2 > U212 > mark1 > U11^13
proper1 > U712 > pair2 > U612 > mark1 > U11^13
proper1 > nil > mark1 > U11^13
proper1 > nil > tt
proper1 > U822 > cons2 > U814 > mark1 > U11^13
proper1 > U822 > pair2 > U212 > mark1 > U11^13
proper1 > U822 > pair2 > U612 > mark1 > U11^13
proper1 > U912 > mark1 > U11^13
proper1 > isLNat > isNatural > tt
proper1 > isLNat > isNatural > and2 > mark1 > U11^13
proper1 > isLNat > isPLNat
proper1 > take2 > and2 > mark1 > U11^13
proper1 > 0 > mark1 > U11^13
proper1 > 0 > tt
proper1 > sel2 > isNatural > tt
proper1 > sel2 > isNatural > and2 > mark1 > U11^13

Status:
U912: [1,2]
sel2: [2,1]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [1,2]
U712: [2,1]
U212: [1,2]
U1013: [3,2,1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,3,2]
nil: []
natsFrom1: [1]
isPLNat: []
afterNth2: [1,2]
U312: [1,2]
snd1: [1]
U11^13: [3,2,1]
U113: [1,3,2]
isLNat: []
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [1,2]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(170) Obligation:

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

U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(171) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U111(ok(X1), ok(X2), ok(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, x3)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > splitAt2 > ok1 > U11^12
active1 > U1013 > splitAt2 > mark1
active1 > U312 > ok1 > U11^12
active1 > U312 > mark1
active1 > U412 > ok1 > U11^12
active1 > U412 > mark1
active1 > U513 > ok1 > U11^12
active1 > U513 > mark1
active1 > afterNth2 > U113 > ok1 > U11^12
active1 > afterNth2 > U113 > mark1
active1 > U712 > ok1 > U11^12
active1 > U712 > mark1
active1 > pair2 > U212 > ok1 > U11^12
active1 > pair2 > U212 > mark1
active1 > pair2 > cons2 > ok1 > U11^12
active1 > pair2 > cons2 > mark1
active1 > pair2 > U612 > ok1 > U11^12
active1 > pair2 > U612 > mark1
active1 > nil > tt > ok1 > U11^12
active1 > nil > mark1
active1 > U814 > splitAt2 > ok1 > U11^12
active1 > U814 > splitAt2 > mark1
active1 > U814 > U822 > cons2 > ok1 > U11^12
active1 > U814 > U822 > cons2 > mark1
active1 > U912 > ok1 > U11^12
active1 > U912 > mark1
active1 > and2 > ok1 > U11^12
active1 > and2 > mark1
active1 > take2 > ok1 > U11^12
active1 > take2 > mark1
active1 > sel2 > ok1 > U11^12
active1 > sel2 > mark1
proper1 > U1013 > splitAt2 > ok1 > U11^12
proper1 > U1013 > splitAt2 > mark1
proper1 > U312 > ok1 > U11^12
proper1 > U312 > mark1
proper1 > U412 > ok1 > U11^12
proper1 > U412 > mark1
proper1 > U513 > ok1 > U11^12
proper1 > U513 > mark1
proper1 > afterNth2 > U113 > ok1 > U11^12
proper1 > afterNth2 > U113 > mark1
proper1 > U712 > ok1 > U11^12
proper1 > U712 > mark1
proper1 > pair2 > U212 > ok1 > U11^12
proper1 > pair2 > U212 > mark1
proper1 > pair2 > cons2 > ok1 > U11^12
proper1 > pair2 > cons2 > mark1
proper1 > pair2 > U612 > ok1 > U11^12
proper1 > pair2 > U612 > mark1
proper1 > nil > tt > ok1 > U11^12
proper1 > nil > mark1
proper1 > U814 > splitAt2 > ok1 > U11^12
proper1 > U814 > splitAt2 > mark1
proper1 > U814 > U822 > cons2 > ok1 > U11^12
proper1 > U814 > U822 > cons2 > mark1
proper1 > U912 > ok1 > U11^12
proper1 > U912 > mark1
proper1 > and2 > ok1 > U11^12
proper1 > and2 > mark1
proper1 > take2 > ok1 > U11^12
proper1 > take2 > mark1
proper1 > 0
proper1 > sel2 > ok1 > U11^12
proper1 > sel2 > mark1

Status:
sel2: [1,2]
U912: [1,2]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [1,2]
U212: [2,1]
U1013: [2,1,3]
active1: [1]
tt: []
U11^12: [2,1]
U814: [3,2,1,4]
pair2: [1,2]
proper1: [1]
top: []
U513: [3,2,1]
nil: []
afterNth2: [1,2]
U312: [1,2]
U113: [3,1,2]
ok1: [1]
0: []
cons2: [1,2]
U822: [2,1]
U612: [1,2]
U412: [2,1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(172) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(173) PisEmptyProof (EQUIVALENT transformation)

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

(174) TRUE

(175) 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(ok(X1), ok(X2)) → SPLITAT(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(176) 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)  =  SPLITAT(x1)
mark(x1)  =  mark(x1)
ok(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U1013 > fst1 > mark1
active1 > U1013 > splitAt2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U412 > mark1
active1 > cons2 > U312 > mark1
active1 > cons2 > U814 > mark1
active1 > s1 > U814 > mark1
active1 > U513 > mark1
active1 > afterNth2 > mark1
active1 > U612 > mark1
active1 > U712 > mark1
active1 > U712 > nil > tt
active1 > pair2 > mark1
active1 > U822 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > isNatural > mark1
active1 > isNatural > tt
active1 > isLNat > mark1
active1 > isLNat > tt
active1 > isPLNat > mark1
active1 > take2 > mark1
active1 > sel2 > mark1

Status:
U912: [1,2]
sel2: [2,1]
isNatural: []
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [2,4,3,1]
pair2: [1,2]
s1: [1]
top: []
U513: [1,3,2]
nil: []
isPLNat: []
afterNth2: [1,2]
U312: [1,2]
snd1: [1]
U113: [1,3,2]
SPLITAT1: [1]
isLNat: []
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(177) Obligation:

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

SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(178) 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(x2)
mark(x1)  =  mark(x1)
ok(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U113 > mark1
active1 > U412 > cons2 > U312 > mark1
active1 > U412 > cons2 > and2 > mark1
active1 > U412 > natsFrom1 > mark1
active1 > U412 > s1 > U814 > splitAt2 > mark1
active1 > U412 > s1 > and2 > mark1
active1 > U513 > head1 > mark1
active1 > U513 > afterNth2 > mark1
active1 > U612 > mark1
active1 > U712 > mark1
active1 > nil > tt > fst1 > U212 > mark1
active1 > nil > tt > fst1 > and2 > mark1
active1 > nil > tt > snd1 > mark1
active1 > nil > tt > natsFrom1 > mark1
active1 > nil > tt > s1 > U814 > splitAt2 > mark1
active1 > nil > tt > s1 > and2 > mark1
active1 > nil > tt > head1 > mark1
active1 > nil > tt > afterNth2 > mark1
active1 > nil > tt > pair2 > U212 > mark1
active1 > nil > tt > pair2 > cons2 > U312 > mark1
active1 > nil > tt > pair2 > cons2 > and2 > mark1
active1 > nil > tt > U822 > cons2 > U312 > mark1
active1 > nil > tt > U822 > cons2 > and2 > mark1
active1 > U912 > mark1
active1 > isNatural > isLNat > tt > fst1 > U212 > mark1
active1 > isNatural > isLNat > tt > fst1 > and2 > mark1
active1 > isNatural > isLNat > tt > snd1 > mark1
active1 > isNatural > isLNat > tt > natsFrom1 > mark1
active1 > isNatural > isLNat > tt > s1 > U814 > splitAt2 > mark1
active1 > isNatural > isLNat > tt > s1 > and2 > mark1
active1 > isNatural > isLNat > tt > head1 > mark1
active1 > isNatural > isLNat > tt > afterNth2 > mark1
active1 > isNatural > isLNat > tt > pair2 > U212 > mark1
active1 > isNatural > isLNat > tt > pair2 > cons2 > U312 > mark1
active1 > isNatural > isLNat > tt > pair2 > cons2 > and2 > mark1
active1 > isNatural > isLNat > tt > U822 > cons2 > U312 > mark1
active1 > isNatural > isLNat > tt > U822 > cons2 > and2 > mark1
active1 > isNatural > isLNat > isPLNat > and2 > mark1
active1 > take2 > U1013 > mark1
active1 > take2 > and2 > mark1
active1 > sel2 > mark1
0 > U712 > mark1

Status:
U912: [2,1]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U212: [2,1]
U712: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [1,4,2,3]
pair2: [2,1]
s1: [1]
top: []
U513: [1,3,2]
natsFrom1: [1]
nil: []
isPLNat: []
afterNth2: [2,1]
snd1: [1]
U312: [2,1]
SPLITAT1: [1]
U113: [3,1,2]
head1: [1]
isLNat: []
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(179) Obligation:

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

SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(180) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


SPLITAT(ok(X1), ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  U11(x1)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  x2
U31(x1, x2)  =  U31(x1)
U41(x1, x2)  =  U41(x1)
cons(x1, x2)  =  x2
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x3)
head(x1)  =  x1
afterNth(x1, x2)  =  x1
U61(x1, x2)  =  U61(x2)
U71(x1, x2)  =  U71(x1)
pair(x1, x2)  =  pair(x1)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x3, x4)
U82(x1, x2)  =  U82(x1)
U91(x1, x2)  =  x2
and(x1, x2)  =  and(x1)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  x1
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
SPLITAT2 > mark
proper1 > U1013 > ok1 > mark
proper1 > fst1 > isLNat1 > ok1 > mark
proper1 > fst1 > isLNat1 > tt > mark
proper1 > U111 > snd1 > ok1 > mark
proper1 > U311 > ok1 > mark
proper1 > natsFrom1 > U411 > ok1 > mark
proper1 > s1 > U812 > ok1 > mark
proper1 > s1 > and1 > ok1 > mark
proper1 > s1 > isLNat1 > ok1 > mark
proper1 > s1 > isLNat1 > tt > mark
proper1 > U511 > ok1 > mark
proper1 > U611 > ok1 > mark
proper1 > U711 > pair1 > ok1 > mark
proper1 > nil > ok1 > mark
proper1 > nil > tt > mark
proper1 > U821 > pair1 > ok1 > mark
proper1 > isNatural1 > and1 > ok1 > mark
proper1 > isNatural1 > isLNat1 > ok1 > mark
proper1 > isNatural1 > isLNat1 > tt > mark
proper1 > isPLNat1 > and1 > ok1 > mark
proper1 > isPLNat1 > isLNat1 > ok1 > mark
proper1 > isPLNat1 > isLNat1 > tt > mark
proper1 > tail1 > isLNat1 > ok1 > mark
proper1 > tail1 > isLNat1 > tt > mark
proper1 > take2 > isLNat1 > ok1 > mark
proper1 > take2 > isLNat1 > tt > mark
proper1 > 0 > mark
top > active1 > U1013 > ok1 > mark
top > active1 > fst1 > isLNat1 > ok1 > mark
top > active1 > fst1 > isLNat1 > tt > mark
top > active1 > U111 > snd1 > ok1 > mark
top > active1 > U311 > ok1 > mark
top > active1 > natsFrom1 > U411 > ok1 > mark
top > active1 > s1 > U812 > ok1 > mark
top > active1 > s1 > and1 > ok1 > mark
top > active1 > s1 > isLNat1 > ok1 > mark
top > active1 > s1 > isLNat1 > tt > mark
top > active1 > U511 > ok1 > mark
top > active1 > U611 > ok1 > mark
top > active1 > U711 > pair1 > ok1 > mark
top > active1 > nil > ok1 > mark
top > active1 > nil > tt > mark
top > active1 > U821 > pair1 > ok1 > mark
top > active1 > isPLNat1 > and1 > ok1 > mark
top > active1 > isPLNat1 > isLNat1 > ok1 > mark
top > active1 > isPLNat1 > isLNat1 > tt > mark
top > active1 > tail1 > isLNat1 > ok1 > mark
top > active1 > tail1 > isLNat1 > tt > mark
top > active1 > take2 > isLNat1 > ok1 > mark
top > active1 > take2 > isLNat1 > tt > mark

Status:
U411: [1]
take2: [2,1]
pair1: [1]
U1013: [2,1,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
SPLITAT2: [2,1]
s1: [1]
U111: [1]
proper1: [1]
top: []
U711: [1]
nil: []
natsFrom1: [1]
tail1: [1]
U611: [1]
snd1: [1]
U821: [1]
ok1: [1]
0: []
U812: [1,2]
U311: [1]
mark: []
isLNat1: [1]
fst1: [1]
and1: [1]
U511: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(181) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(182) PisEmptyProof (EQUIVALENT transformation)

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

(183) TRUE

(184) Obligation:

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

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

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


FST(mark(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)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
FST1 > mark1
active1 > tt > fst1 > isLNat1 > mark1
active1 > tt > splitAt2 > mark1
active1 > tt > snd1 > mark1
active1 > tt > afterNth2 > isLNat1 > mark1
active1 > tt > nil > mark1
active1 > tt > U822 > cons2 > mark1
active1 > tt > U822 > pair2 > mark1
active1 > U113 > splitAt2 > mark1
active1 > U113 > snd1 > mark1
active1 > U212 > mark1
active1 > U312 > mark1
active1 > U412 > cons2 > mark1
active1 > U513 > afterNth2 > isLNat1 > mark1
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > nil > mark1
active1 > U814 > splitAt2 > mark1
active1 > U814 > U822 > cons2 > mark1
active1 > U814 > U822 > pair2 > mark1
active1 > U912 > mark1
active1 > and2 > mark1
active1 > take2 > U1013 > fst1 > isLNat1 > mark1
active1 > take2 > U1013 > splitAt2 > mark1
active1 > sel2 > isLNat1 > mark1
0 > isLNat1 > mark1
top > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [1,3,2]
active1: [1]
tt: []
U814: [3,1,2,4]
pair2: [2,1]
top: []
U513: [1,3,2]
nil: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
FST1: [1]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [1,2]
U412: [2,1]
isLNat1: [1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(186) Obligation:

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

FST(ok(X)) → FST(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


FST(ok(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)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
FST1 > ok1
active1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
active1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U113 > snd1 > isPLNat1 > mark1 > ok1
active1 > U212 > mark1 > ok1
active1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
active1 > U412 > s1 > and2 > mark1 > ok1
active1 > U612 > mark1 > ok1
active1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > nil > tt > afterNth2 > mark1 > ok1
active1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > U912 > mark1 > ok1
active1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
active1 > isLNat1 > tt > afterNth2 > mark1 > ok1
active1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
active1 > isLNat1 > and2 > mark1 > ok1
active1 > tail1 > and2 > mark1 > ok1
active1 > take2 > U1013 > mark1 > ok1
active1 > sel2 > U513 > afterNth2 > mark1 > ok1
proper1 > splitAt2 > U712 > pair2 > cons2 > U312 > mark1 > ok1
proper1 > splitAt2 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U113 > snd1 > isPLNat1 > mark1 > ok1
proper1 > U212 > mark1 > ok1
proper1 > U412 > s1 > U814 > U822 > cons2 > U312 > mark1 > ok1
proper1 > U412 > s1 > and2 > mark1 > ok1
proper1 > U612 > mark1 > ok1
proper1 > nil > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > nil > tt > afterNth2 > mark1 > ok1
proper1 > nil > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > U912 > mark1 > ok1
proper1 > isLNat1 > tt > fst1 > isPLNat1 > mark1 > ok1
proper1 > isLNat1 > tt > afterNth2 > mark1 > ok1
proper1 > isLNat1 > tt > U822 > cons2 > U312 > mark1 > ok1
proper1 > isLNat1 > and2 > mark1 > ok1
proper1 > tail1 > and2 > mark1 > ok1
proper1 > take2 > U1013 > mark1 > ok1
proper1 > 0 > mark1 > ok1
proper1 > sel2 > U513 > afterNth2 > mark1 > ok1
top > ok1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U712: [2,1]
U1013: [1,3,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
afterNth2: [2,1]
tail1: [1]
FST1: [1]
snd1: [1]
U312: [1,2]
U113: [2,3,1]
ok1: [1]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(188) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(189) PisEmptyProof (EQUIVALENT transformation)

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

(190) TRUE

(191) Obligation:

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

U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)
U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(192) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U1011(x1, x2, x3)  =  U1011(x1, x2, x3)
ok(x1)  =  x1
mark(x1)  =  mark(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > splitAt2 > U712 > mark1 > U101^13 > isLNat
active1 > splitAt2 > U814 > U822 > mark1 > U101^13 > isLNat
active1 > splitAt2 > isNatural > isLNat
active1 > U113 > snd1 > mark1 > U101^13 > isLNat
active1 > U212 > mark1 > U101^13 > isLNat
active1 > U312 > mark1 > U101^13 > isLNat
active1 > U412 > cons2 > mark1 > U101^13 > isLNat
active1 > U412 > cons2 > isNatural > isLNat
active1 > U513 > mark1 > U101^13 > isLNat
active1 > afterNth2 > mark1 > U101^13 > isLNat
active1 > afterNth2 > isNatural > isLNat
active1 > U612 > mark1 > U101^13 > isLNat
active1 > pair2 > cons2 > mark1 > U101^13 > isLNat
active1 > pair2 > cons2 > isNatural > isLNat
active1 > nil > mark1 > U101^13 > isLNat
active1 > nil > tt > isLNat
active1 > U912 > mark1 > U101^13 > isLNat
active1 > and2 > mark1 > U101^13 > isLNat
active1 > isPLNat > mark1 > U101^13 > isLNat
active1 > isPLNat > isNatural > isLNat
active1 > take2 > U1013 > fst1 > mark1 > U101^13 > isLNat
active1 > take2 > isNatural > isLNat
active1 > sel2 > mark1 > U101^13 > isLNat
active1 > sel2 > isNatural > isLNat
0 > tt > isLNat
top > isLNat

Status:
U912: [2,1]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [2,1]
U212: [1,2]
U1013: [3,1,2]
active1: [1]
tt: []
U814: [4,2,3,1]
pair2: [1,2]
top: []
U513: [1,2,3]
nil: []
isPLNat: []
afterNth2: [1,2]
U312: [2,1]
snd1: [1]
U113: [1,3,2]
isLNat: []
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [1,2]
fst1: [1]
U101^13: [2,1,3]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(193) Obligation:

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

U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(194) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
U1011(x1, x2, x3)  =  U1011(x1, x2)
ok(x1)  =  ok(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  x1
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x2)
U41(x1, x2)  =  x2
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x2)
U71(x1, x2)  =  x2
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x2)
and(x1, x2)  =  x2
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
U101^12 > nil
top > active1 > U1013 > ok1 > nil
top > active1 > splitAt2 > ok1 > nil
top > active1 > U113 > ok1 > nil
top > active1 > snd1 > ok1 > nil
top > active1 > U212 > ok1 > nil
top > active1 > U311 > ok1 > nil
top > active1 > cons2 > ok1 > nil
top > active1 > natsFrom1 > ok1 > nil
top > active1 > s1 > ok1 > nil
top > active1 > U513 > ok1 > nil
top > active1 > afterNth2 > ok1 > nil
top > active1 > U611 > ok1 > nil
top > active1 > pair2 > ok1 > nil
top > active1 > U814 > ok1 > nil
top > active1 > U822 > ok1 > nil
top > active1 > U911 > ok1 > nil
top > active1 > isNatural1 > ok1 > nil
top > active1 > isNatural1 > tt > nil
top > active1 > tail1 > ok1 > nil
top > active1 > take2 > ok1 > nil
top > active1 > sel2 > ok1 > nil
top > proper1 > U1013 > ok1 > nil
top > proper1 > splitAt2 > ok1 > nil
top > proper1 > U113 > ok1 > nil
top > proper1 > snd1 > ok1 > nil
top > proper1 > U212 > ok1 > nil
top > proper1 > U311 > ok1 > nil
top > proper1 > cons2 > ok1 > nil
top > proper1 > natsFrom1 > ok1 > nil
top > proper1 > s1 > ok1 > nil
top > proper1 > U513 > ok1 > nil
top > proper1 > afterNth2 > ok1 > nil
top > proper1 > U611 > ok1 > nil
top > proper1 > pair2 > ok1 > nil
top > proper1 > U814 > ok1 > nil
top > proper1 > U822 > ok1 > nil
top > proper1 > U911 > ok1 > nil
top > proper1 > isNatural1 > ok1 > nil
top > proper1 > isNatural1 > tt > nil
top > proper1 > tail1 > ok1 > nil
top > proper1 > take2 > ok1 > nil
top > proper1 > 0 > nil
top > proper1 > sel2 > ok1 > nil

Status:
sel2: [1,2]
U101^12: [1,2]
take2: [2,1]
splitAt2: [1,2]
U212: [1,2]
U1013: [3,1,2]
isNatural1: [1]
active1: [1]
tt: []
U814: [1,3,4,2]
U911: [1]
pair2: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
natsFrom1: [1]
tail1: [1]
afterNth2: [2,1]
U611: [1]
snd1: [1]
U113: [3,1,2]
ok1: [1]
0: []
cons2: [2,1]
U822: [1,2]
U311: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(195) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(196) PisEmptyProof (EQUIVALENT transformation)

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

(197) TRUE

(198) Obligation:

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

PROPER(U101(X1, X2, X3)) → PROPER(X2)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(fst(X)) → PROPER(X)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(snd(X)) → PROPER(X)
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(head(X)) → PROPER(X)
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U82(X1, X2)) → PROPER(X1)
PROPER(U82(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → PROPER(X)
PROPER(isLNat(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(tail(X)) → PROPER(X)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(199) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PROPER(U101(X1, X2, X3)) → PROPER(X2)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U82(X1, X2)) → PROPER(X1)
PROPER(U82(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  PROPER(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
fst(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  x1
isLNat(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
sel(x1, x2)  =  sel(x1, x2)
active(x1)  =  active(x1)
tt  =  tt
mark(x1)  =  mark(x1)
nil  =  nil
0  =  0
proper(x1)  =  proper(x1)
ok(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
top > active1 > U1013 > splitAt2 > mark1
top > active1 > U212 > mark1
top > active1 > U412 > cons2 > U312 > mark1
top > active1 > afterNth2 > U113 > mark1
top > active1 > U712 > pair2 > U612 > mark1
top > active1 > U814 > splitAt2 > mark1
top > active1 > U814 > U822 > mark1
top > active1 > U912 > mark1
top > active1 > and2 > mark1
top > active1 > take2 > mark1
top > active1 > sel2 > U513 > mark1
top > active1 > nil > tt > mark1
top > proper1 > U1013 > splitAt2 > mark1
top > proper1 > U212 > mark1
top > proper1 > U412 > cons2 > U312 > mark1
top > proper1 > afterNth2 > U113 > mark1
top > proper1 > U712 > pair2 > U612 > mark1
top > proper1 > U814 > splitAt2 > mark1
top > proper1 > U814 > U822 > mark1
top > proper1 > U912 > mark1
top > proper1 > and2 > mark1
top > proper1 > take2 > mark1
top > proper1 > sel2 > U513 > mark1
top > proper1 > nil > tt > mark1
top > proper1 > 0 > mark1

Status:
sel2: [1,2]
U912: [1,2]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [2,1,3]
active1: [1]
tt: []
U814: [2,1,3,4]
pair2: [1,2]
proper1: [1]
top: []
U513: [3,1,2]
nil: []
PROPER1: [1]
afterNth2: [1,2]
U312: [1,2]
U113: [2,1,3]
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [1,2]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(200) Obligation:

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

PROPER(fst(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(head(X)) → PROPER(X)
PROPER(isNatural(X)) → PROPER(X)
PROPER(isLNat(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(tail(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(201) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PROPER(isLNat(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  PROPER(x1)
fst(x1)  =  x1
snd(x1)  =  x1
natsFrom(x1)  =  x1
s(x1)  =  x1
head(x1)  =  x1
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
tail(x1)  =  x1
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  x3
tt  =  tt
mark(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  x2
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  x2
and(x1, x2)  =  and(x2)
take(x1, x2)  =  take(x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
0 > isLNat1 > tt > cons2 > U311
0 > isLNat1 > tt > afterNth2
0 > isLNat1 > tt > pair2 > U212
0 > isLNat1 > tt > U822
0 > isLNat1 > and1
0 > ok > U113
0 > ok > U412 > cons2 > U311
0 > ok > U513 > afterNth2
0 > ok > pair2 > U212
0 > ok > U812 > splitAt1
0 > ok > U812 > U822
0 > ok > take1
0 > ok > sel2 > and1
proper1 > isLNat1 > tt > cons2 > U311
proper1 > isLNat1 > tt > afterNth2
proper1 > isLNat1 > tt > pair2 > U212
proper1 > isLNat1 > tt > U822
proper1 > isLNat1 > and1
proper1 > U612
proper1 > nil
proper1 > ok > U113
proper1 > ok > U412 > cons2 > U311
proper1 > ok > U513 > afterNth2
proper1 > ok > pair2 > U212
proper1 > ok > U812 > splitAt1
proper1 > ok > U812 > U822
proper1 > ok > take1
proper1 > ok > sel2 > and1
top > active1 > isLNat1 > tt > cons2 > U311
top > active1 > isLNat1 > tt > afterNth2
top > active1 > isLNat1 > tt > pair2 > U212
top > active1 > isLNat1 > tt > U822
top > active1 > isLNat1 > and1
top > active1 > U113
top > active1 > U412 > cons2 > U311
top > active1 > U513 > afterNth2
top > active1 > U612
top > active1 > nil
top > active1 > U812 > splitAt1
top > active1 > U812 > U822
top > active1 > take1
top > active1 > sel2 > and1

Status:
sel2: [1,2]
U212: [2,1]
active1: [1]
tt: []
pair2: [2,1]
proper1: [1]
top: []
U513: [1,2,3]
nil: []
PROPER1: [1]
afterNth2: [2,1]
U113: [2,1,3]
0: []
cons2: [2,1]
U822: [2,1]
U311: [1]
U612: [2,1]
U812: [1,2]
U412: [2,1]
isLNat1: [1]
and1: [1]
ok: []
splitAt1: [1]
take1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(202) Obligation:

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

PROPER(fst(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(head(X)) → PROPER(X)
PROPER(isNatural(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(tail(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(203) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PROPER(tail(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  PROPER(x1)
fst(x1)  =  x1
snd(x1)  =  x1
natsFrom(x1)  =  x1
s(x1)  =  x1
head(x1)  =  x1
isNatural(x1)  =  x1
isPLNat(x1)  =  x1
tail(x1)  =  tail(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  x3
tt  =  tt
mark(x1)  =  x1
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  U11(x3)
U21(x1, x2)  =  U21(x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  x2
cons(x1, x2)  =  cons(x1, x2)
U51(x1, x2, x3)  =  U51(x1, x3)
afterNth(x1, x2)  =  afterNth(x2)
U61(x1, x2)  =  U61(x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x2)
isLNat(x1)  =  x1
take(x1, x2)  =  x2
0  =  0
sel(x1, x2)  =  x2
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tail1 > ok > U111
active1 > tail1 > ok > U312
active1 > tail1 > ok > U813
active1 > tt > nil
active1 > U512 > ok > U111
active1 > U512 > ok > U312
active1 > U512 > ok > U813
active1 > afterNth1 > ok > U111
active1 > afterNth1 > ok > U312
active1 > afterNth1 > ok > U813
active1 > U712 > nil
active1 > U712 > ok > U111
active1 > U712 > ok > U312
active1 > U712 > ok > U813
active1 > pair2 > U211 > ok > U111
active1 > pair2 > U211 > ok > U312
active1 > pair2 > U211 > ok > U813
active1 > pair2 > cons2 > ok > U111
active1 > pair2 > cons2 > ok > U312
active1 > pair2 > cons2 > ok > U813
active1 > pair2 > U611 > ok > U111
active1 > pair2 > U611 > ok > U312
active1 > pair2 > U611 > ok > U813
active1 > U822 > cons2 > ok > U111
active1 > U822 > cons2 > ok > U312
active1 > U822 > cons2 > ok > U813
active1 > U912 > ok > U111
active1 > U912 > ok > U312
active1 > U912 > ok > U813
active1 > and1 > ok > U111
active1 > and1 > ok > U312
active1 > and1 > ok > U813
proper1 > tail1 > ok > U111
proper1 > tail1 > ok > U312
proper1 > tail1 > ok > U813
proper1 > U512 > ok > U111
proper1 > U512 > ok > U312
proper1 > U512 > ok > U813
proper1 > afterNth1 > ok > U111
proper1 > afterNth1 > ok > U312
proper1 > afterNth1 > ok > U813
proper1 > U712 > nil
proper1 > U712 > ok > U111
proper1 > U712 > ok > U312
proper1 > U712 > ok > U813
proper1 > pair2 > U211 > ok > U111
proper1 > pair2 > U211 > ok > U312
proper1 > pair2 > U211 > ok > U813
proper1 > pair2 > cons2 > ok > U111
proper1 > pair2 > cons2 > ok > U312
proper1 > pair2 > cons2 > ok > U813
proper1 > pair2 > U611 > ok > U111
proper1 > pair2 > U611 > ok > U312
proper1 > pair2 > U611 > ok > U813
proper1 > U822 > cons2 > ok > U111
proper1 > U822 > cons2 > ok > U312
proper1 > U822 > cons2 > ok > U813
proper1 > U912 > ok > U111
proper1 > U912 > ok > U312
proper1 > U912 > ok > U813
proper1 > and1 > ok > U111
proper1 > and1 > ok > U312
proper1 > and1 > ok > U813
proper1 > 0 > tt > nil
proper1 > 0 > ok > U111
proper1 > 0 > ok > U312
proper1 > 0 > ok > U813

Status:
U912: [2,1]
PROPER1: [1]
tail1: [1]
U312: [1,2]
U611: [1]
U813: [3,2,1]
0: []
U512: [2,1]
U712: [1,2]
active1: [1]
cons2: [2,1]
tt: []
U822: [1,2]
pair2: [1,2]
U111: [1]
and1: [1]
ok: []
proper1: [1]
afterNth1: [1]
top: []
nil: []
U211: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(204) Obligation:

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

PROPER(fst(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(head(X)) → PROPER(X)
PROPER(isNatural(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(205) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PROPER(isPLNat(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  PROPER(x1)
fst(x1)  =  x1
snd(x1)  =  x1
natsFrom(x1)  =  x1
s(x1)  =  x1
head(x1)  =  x1
isNatural(x1)  =  x1
isPLNat(x1)  =  isPLNat(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isLNat(x1)  =  isLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
proper1 > 0 > U712 > mark1
proper1 > ok > active1 > isPLNat1 > mark1
proper1 > ok > active1 > splitAt2 > U712 > mark1
proper1 > ok > active1 > splitAt2 > U814 > mark1
proper1 > ok > active1 > U312 > mark1
proper1 > ok > active1 > U412 > cons2 > U814 > mark1
proper1 > ok > active1 > U513 > mark1
proper1 > ok > active1 > afterNth2 > U113 > mark1
proper1 > ok > active1 > afterNth2 > isLNat1 > tt > nil > mark1
proper1 > ok > active1 > afterNth2 > isLNat1 > tt > U822 > mark1
proper1 > ok > active1 > pair2 > U212 > mark1
proper1 > ok > active1 > pair2 > U612 > mark1
proper1 > ok > active1 > U912 > mark1
proper1 > ok > active1 > and2 > mark1
proper1 > ok > active1 > tail1 > isLNat1 > tt > nil > mark1
proper1 > ok > active1 > tail1 > isLNat1 > tt > U822 > mark1
proper1 > ok > active1 > take2 > U1013 > mark1
proper1 > ok > active1 > sel2 > mark1
top > active1 > isPLNat1 > mark1
top > active1 > splitAt2 > U712 > mark1
top > active1 > splitAt2 > U814 > mark1
top > active1 > U312 > mark1
top > active1 > U412 > cons2 > U814 > mark1
top > active1 > U513 > mark1
top > active1 > afterNth2 > U113 > mark1
top > active1 > afterNth2 > isLNat1 > tt > nil > mark1
top > active1 > afterNth2 > isLNat1 > tt > U822 > mark1
top > active1 > pair2 > U212 > mark1
top > active1 > pair2 > U612 > mark1
top > active1 > U912 > mark1
top > active1 > and2 > mark1
top > active1 > tail1 > isLNat1 > tt > nil > mark1
top > active1 > tail1 > isLNat1 > tt > U822 > mark1
top > active1 > take2 > U1013 > mark1
top > active1 > sel2 > mark1

Status:
U912: [2,1]
sel2: [1,2]
mark1: [1]
and2: [1,2]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [1,2]
U1013: [2,1,3]
isPLNat1: [1]
active1: [1]
tt: []
U814: [1,2,3,4]
pair2: [2,1]
proper1: [1]
top: []
U513: [3,1,2]
nil: []
PROPER1: [1]
tail1: [1]
afterNth2: [1,2]
U312: [1,2]
U113: [2,1,3]
0: []
cons2: [1,2]
U822: [1,2]
U612: [1,2]
U412: [1,2]
isLNat1: [1]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(206) Obligation:

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

PROPER(fst(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)
PROPER(head(X)) → PROPER(X)
PROPER(isNatural(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(207) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PROPER(head(X)) → PROPER(X)
PROPER(isNatural(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  x1
fst(x1)  =  x1
snd(x1)  =  x1
natsFrom(x1)  =  x1
s(x1)  =  x1
head(x1)  =  head(x1)
isNatural(x1)  =  isNatural(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
U51(x1, x2, x3)  =  U51(x2, x3)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > head1 > ok > U1013
active1 > tt > head1 > ok > splitAt2 > isNatural1
active1 > tt > head1 > ok > splitAt2 > U814
active1 > tt > head1 > ok > U512
active1 > tt > head1 > ok > U612
active1 > tt > head1 > ok > pair2
active1 > tt > head1 > ok > tail1 > isNatural1
active1 > tt > head1 > ok > take2
active1 > tt > cons2 > isLNat1 > ok > U1013
active1 > tt > cons2 > isLNat1 > ok > splitAt2 > isNatural1
active1 > tt > cons2 > isLNat1 > ok > splitAt2 > U814
active1 > tt > cons2 > isLNat1 > ok > U512
active1 > tt > cons2 > isLNat1 > ok > U612
active1 > tt > cons2 > isLNat1 > ok > pair2
active1 > tt > cons2 > isLNat1 > ok > tail1 > isNatural1
active1 > tt > cons2 > isLNat1 > ok > take2
active1 > tt > afterNth2 > and2 > ok > U1013
active1 > tt > afterNth2 > and2 > ok > splitAt2 > isNatural1
active1 > tt > afterNth2 > and2 > ok > splitAt2 > U814
active1 > tt > afterNth2 > and2 > ok > U512
active1 > tt > afterNth2 > and2 > ok > U612
active1 > tt > afterNth2 > and2 > ok > pair2
active1 > tt > afterNth2 > and2 > ok > tail1 > isNatural1
active1 > tt > afterNth2 > and2 > ok > take2
active1 > tt > afterNth2 > isLNat1 > ok > U1013
active1 > tt > afterNth2 > isLNat1 > ok > splitAt2 > isNatural1
active1 > tt > afterNth2 > isLNat1 > ok > splitAt2 > U814
active1 > tt > afterNth2 > isLNat1 > ok > U512
active1 > tt > afterNth2 > isLNat1 > ok > U612
active1 > tt > afterNth2 > isLNat1 > ok > pair2
active1 > tt > afterNth2 > isLNat1 > ok > tail1 > isNatural1
active1 > tt > afterNth2 > isLNat1 > ok > take2
active1 > tt > nil > ok > U1013
active1 > tt > nil > ok > splitAt2 > isNatural1
active1 > tt > nil > ok > splitAt2 > U814
active1 > tt > nil > ok > U512
active1 > tt > nil > ok > U612
active1 > tt > nil > ok > pair2
active1 > tt > nil > ok > tail1 > isNatural1
active1 > tt > nil > ok > take2
active1 > tt > U822 > pair2
active1 > U113 > ok > U1013
active1 > U113 > ok > splitAt2 > isNatural1
active1 > U113 > ok > splitAt2 > U814
active1 > U113 > ok > U512
active1 > U113 > ok > U612
active1 > U113 > ok > pair2
active1 > U113 > ok > tail1 > isNatural1
active1 > U113 > ok > take2
active1 > U212 > ok > U1013
active1 > U212 > ok > splitAt2 > isNatural1
active1 > U212 > ok > splitAt2 > U814
active1 > U212 > ok > U512
active1 > U212 > ok > U612
active1 > U212 > ok > pair2
active1 > U212 > ok > tail1 > isNatural1
active1 > U212 > ok > take2
active1 > U312 > ok > U1013
active1 > U312 > ok > splitAt2 > isNatural1
active1 > U312 > ok > splitAt2 > U814
active1 > U312 > ok > U512
active1 > U312 > ok > U612
active1 > U312 > ok > pair2
active1 > U312 > ok > tail1 > isNatural1
active1 > U312 > ok > take2
active1 > U412 > cons2 > isLNat1 > ok > U1013
active1 > U412 > cons2 > isLNat1 > ok > splitAt2 > isNatural1
active1 > U412 > cons2 > isLNat1 > ok > splitAt2 > U814
active1 > U412 > cons2 > isLNat1 > ok > U512
active1 > U412 > cons2 > isLNat1 > ok > U612
active1 > U412 > cons2 > isLNat1 > ok > pair2
active1 > U412 > cons2 > isLNat1 > ok > tail1 > isNatural1
active1 > U412 > cons2 > isLNat1 > ok > take2
active1 > U712 > nil > ok > U1013
active1 > U712 > nil > ok > splitAt2 > isNatural1
active1 > U712 > nil > ok > splitAt2 > U814
active1 > U712 > nil > ok > U512
active1 > U712 > nil > ok > U612
active1 > U712 > nil > ok > pair2
active1 > U712 > nil > ok > tail1 > isNatural1
active1 > U712 > nil > ok > take2
active1 > U912 > ok > U1013
active1 > U912 > ok > splitAt2 > isNatural1
active1 > U912 > ok > splitAt2 > U814
active1 > U912 > ok > U512
active1 > U912 > ok > U612
active1 > U912 > ok > pair2
active1 > U912 > ok > tail1 > isNatural1
active1 > U912 > ok > take2
active1 > isPLNat1 > and2 > ok > U1013
active1 > isPLNat1 > and2 > ok > splitAt2 > isNatural1
active1 > isPLNat1 > and2 > ok > splitAt2 > U814
active1 > isPLNat1 > and2 > ok > U512
active1 > isPLNat1 > and2 > ok > U612
active1 > isPLNat1 > and2 > ok > pair2
active1 > isPLNat1 > and2 > ok > tail1 > isNatural1
active1 > isPLNat1 > and2 > ok > take2
active1 > isPLNat1 > isLNat1 > ok > U1013
active1 > isPLNat1 > isLNat1 > ok > splitAt2 > isNatural1
active1 > isPLNat1 > isLNat1 > ok > splitAt2 > U814
active1 > isPLNat1 > isLNat1 > ok > U512
active1 > isPLNat1 > isLNat1 > ok > U612
active1 > isPLNat1 > isLNat1 > ok > pair2
active1 > isPLNat1 > isLNat1 > ok > tail1 > isNatural1
active1 > isPLNat1 > isLNat1 > ok > take2
active1 > sel2 > and2 > ok > U1013
active1 > sel2 > and2 > ok > splitAt2 > isNatural1
active1 > sel2 > and2 > ok > splitAt2 > U814
active1 > sel2 > and2 > ok > U512
active1 > sel2 > and2 > ok > U612
active1 > sel2 > and2 > ok > pair2
active1 > sel2 > and2 > ok > tail1 > isNatural1
active1 > sel2 > and2 > ok > take2
active1 > sel2 > isLNat1 > ok > U1013
active1 > sel2 > isLNat1 > ok > splitAt2 > isNatural1
active1 > sel2 > isLNat1 > ok > splitAt2 > U814
active1 > sel2 > isLNat1 > ok > U512
active1 > sel2 > isLNat1 > ok > U612
active1 > sel2 > isLNat1 > ok > pair2
active1 > sel2 > isLNat1 > ok > tail1 > isNatural1
active1 > sel2 > isLNat1 > ok > take2
0 > U712 > nil > ok > U1013
0 > U712 > nil > ok > splitAt2 > isNatural1
0 > U712 > nil > ok > splitAt2 > U814
0 > U712 > nil > ok > U512
0 > U712 > nil > ok > U612
0 > U712 > nil > ok > pair2
0 > U712 > nil > ok > tail1 > isNatural1
0 > U712 > nil > ok > take2
0 > isLNat1 > ok > U1013
0 > isLNat1 > ok > splitAt2 > isNatural1
0 > isLNat1 > ok > splitAt2 > U814
0 > isLNat1 > ok > U512
0 > isLNat1 > ok > U612
0 > isLNat1 > ok > pair2
0 > isLNat1 > ok > tail1 > isNatural1
0 > isLNat1 > ok > take2

Status:
U912: [2,1]
sel2: [1,2]
and2: [2,1]
take2: [2,1]
splitAt2: [2,1]
U712: [2,1]
U512: [2,1]
U212: [2,1]
U1013: [1,2,3]
isPLNat1: [1]
active1: [1]
isNatural1: [1]
tt: []
U814: [3,2,4,1]
pair2: [2,1]
top: []
nil: []
tail1: [1]
afterNth2: [2,1]
U312: [2,1]
U113: [1,2,3]
head1: [1]
0: []
cons2: [1,2]
U822: [2,1]
U612: [2,1]
U412: [1,2]
isLNat1: [1]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(208) Obligation:

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

PROPER(fst(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(s(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


PROPER(s(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  PROPER(x1)
fst(x1)  =  x1
snd(x1)  =  x1
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
PROPER1 > mark1
top > active1 > s1 > U814 > U822 > mark1
top > active1 > s1 > U814 > ok > mark1
top > active1 > U1013 > ok > mark1
top > active1 > splitAt2 > U712 > ok > mark1
top > active1 > splitAt2 > U814 > U822 > mark1
top > active1 > splitAt2 > U814 > ok > mark1
top > active1 > U113 > ok > mark1
top > active1 > U412 > mark1
top > active1 > U513 > afterNth2 > ok > mark1
top > active1 > pair2 > U212 > ok > mark1
top > active1 > pair2 > cons2 > U312 > mark1
top > active1 > pair2 > cons2 > U814 > U822 > mark1
top > active1 > pair2 > cons2 > U814 > ok > mark1
top > active1 > pair2 > U612 > ok > mark1
top > active1 > nil > tt > mark1
top > active1 > nil > ok > mark1
top > active1 > isLNat > and2 > ok > mark1
top > active1 > isLNat > isNatural > tt > mark1
top > active1 > isLNat > isNatural > ok > mark1
top > active1 > isLNat > isPLNat > ok > mark1
top > active1 > tail1 > U912 > ok > mark1
top > active1 > take2 > ok > mark1
top > active1 > sel2 > mark1
top > proper1 > s1 > U814 > U822 > mark1
top > proper1 > s1 > U814 > ok > mark1
top > proper1 > U1013 > ok > mark1
top > proper1 > splitAt2 > U712 > ok > mark1
top > proper1 > splitAt2 > U814 > U822 > mark1
top > proper1 > splitAt2 > U814 > ok > mark1
top > proper1 > U113 > ok > mark1
top > proper1 > U412 > mark1
top > proper1 > U513 > afterNth2 > ok > mark1
top > proper1 > pair2 > U212 > ok > mark1
top > proper1 > pair2 > cons2 > U312 > mark1
top > proper1 > pair2 > cons2 > U814 > U822 > mark1
top > proper1 > pair2 > cons2 > U814 > ok > mark1
top > proper1 > pair2 > U612 > ok > mark1
top > proper1 > nil > tt > mark1
top > proper1 > nil > ok > mark1
top > proper1 > isLNat > and2 > ok > mark1
top > proper1 > isLNat > isNatural > tt > mark1
top > proper1 > isLNat > isNatural > ok > mark1
top > proper1 > isLNat > isPLNat > ok > mark1
top > proper1 > tail1 > U912 > ok > mark1
top > proper1 > take2 > ok > mark1
top > proper1 > 0 > tt > mark1
top > proper1 > 0 > U712 > ok > mark1
top > proper1 > sel2 > mark1

Status:
U912: [2,1]
sel2: [1,2]
isNatural: []
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [1,2]
U712: [1,2]
U212: [1,2]
U1013: [2,1,3]
active1: [1]
tt: []
U814: [4,2,1,3]
pair2: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [2,3,1]
nil: []
isPLNat: []
PROPER1: [1]
afterNth2: [2,1]
tail1: [1]
U312: [1,2]
U113: [3,1,2]
isLNat: []
0: []
cons2: [1,2]
U822: [1,2]
U612: [2,1]
U412: [2,1]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(210) Obligation:

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

PROPER(fst(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)
PROPER(natsFrom(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


PROPER(natsFrom(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  PROPER(x1)
fst(x1)  =  x1
snd(x1)  =  x1
natsFrom(x1)  =  natsFrom(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x2, x3)
tt  =  tt
mark(x1)  =  x1
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  U11(x1, x2, x3)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  x1
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
PROPER1 > natsFrom1
active1 > U1012 > ok > U312 > natsFrom1
active1 > U1012 > ok > U412 > natsFrom1
active1 > U1012 > ok > U612 > natsFrom1
active1 > U1012 > ok > U912 > natsFrom1
active1 > U1012 > ok > isLNat1 > natsFrom1
active1 > U1012 > ok > sel2 > natsFrom1
active1 > U113 > ok > U312 > natsFrom1
active1 > U113 > ok > U412 > natsFrom1
active1 > U113 > ok > U612 > natsFrom1
active1 > U113 > ok > U912 > natsFrom1
active1 > U113 > ok > isLNat1 > natsFrom1
active1 > U113 > ok > sel2 > natsFrom1
active1 > U212 > ok > U312 > natsFrom1
active1 > U212 > ok > U412 > natsFrom1
active1 > U212 > ok > U612 > natsFrom1
active1 > U212 > ok > U912 > natsFrom1
active1 > U212 > ok > isLNat1 > natsFrom1
active1 > U212 > ok > sel2 > natsFrom1
active1 > U513 > ok > U312 > natsFrom1
active1 > U513 > ok > U412 > natsFrom1
active1 > U513 > ok > U612 > natsFrom1
active1 > U513 > ok > U912 > natsFrom1
active1 > U513 > ok > isLNat1 > natsFrom1
active1 > U513 > ok > sel2 > natsFrom1
active1 > U712 > pair2 > cons2 > ok > U312 > natsFrom1
active1 > U712 > pair2 > cons2 > ok > U412 > natsFrom1
active1 > U712 > pair2 > cons2 > ok > U612 > natsFrom1
active1 > U712 > pair2 > cons2 > ok > U912 > natsFrom1
active1 > U712 > pair2 > cons2 > ok > isLNat1 > natsFrom1
active1 > U712 > pair2 > cons2 > ok > sel2 > natsFrom1
active1 > nil > tt > cons2 > ok > U312 > natsFrom1
active1 > nil > tt > cons2 > ok > U412 > natsFrom1
active1 > nil > tt > cons2 > ok > U612 > natsFrom1
active1 > nil > tt > cons2 > ok > U912 > natsFrom1
active1 > nil > tt > cons2 > ok > isLNat1 > natsFrom1
active1 > nil > tt > cons2 > ok > sel2 > natsFrom1
active1 > nil > tt > s1 > isLNat1 > natsFrom1
active1 > nil > tt > afterNth2 > ok > U312 > natsFrom1
active1 > nil > tt > afterNth2 > ok > U412 > natsFrom1
active1 > nil > tt > afterNth2 > ok > U612 > natsFrom1
active1 > nil > tt > afterNth2 > ok > U912 > natsFrom1
active1 > nil > tt > afterNth2 > ok > isLNat1 > natsFrom1
active1 > nil > tt > afterNth2 > ok > sel2 > natsFrom1
active1 > nil > tt > U822 > ok > U312 > natsFrom1
active1 > nil > tt > U822 > ok > U412 > natsFrom1
active1 > nil > tt > U822 > ok > U612 > natsFrom1
active1 > nil > tt > U822 > ok > U912 > natsFrom1
active1 > nil > tt > U822 > ok > isLNat1 > natsFrom1
active1 > nil > tt > U822 > ok > sel2 > natsFrom1
active1 > U812 > U822 > ok > U312 > natsFrom1
active1 > U812 > U822 > ok > U412 > natsFrom1
active1 > U812 > U822 > ok > U612 > natsFrom1
active1 > U812 > U822 > ok > U912 > natsFrom1
active1 > U812 > U822 > ok > isLNat1 > natsFrom1
active1 > U812 > U822 > ok > sel2 > natsFrom1
active1 > and1 > ok > U312 > natsFrom1
active1 > and1 > ok > U412 > natsFrom1
active1 > and1 > ok > U612 > natsFrom1
active1 > and1 > ok > U912 > natsFrom1
active1 > and1 > ok > isLNat1 > natsFrom1
active1 > and1 > ok > sel2 > natsFrom1
active1 > isNatural1 > tt > cons2 > ok > U312 > natsFrom1
active1 > isNatural1 > tt > cons2 > ok > U412 > natsFrom1
active1 > isNatural1 > tt > cons2 > ok > U612 > natsFrom1
active1 > isNatural1 > tt > cons2 > ok > U912 > natsFrom1
active1 > isNatural1 > tt > cons2 > ok > isLNat1 > natsFrom1
active1 > isNatural1 > tt > cons2 > ok > sel2 > natsFrom1
active1 > isNatural1 > tt > s1 > isLNat1 > natsFrom1
active1 > isNatural1 > tt > afterNth2 > ok > U312 > natsFrom1
active1 > isNatural1 > tt > afterNth2 > ok > U412 > natsFrom1
active1 > isNatural1 > tt > afterNth2 > ok > U612 > natsFrom1
active1 > isNatural1 > tt > afterNth2 > ok > U912 > natsFrom1
active1 > isNatural1 > tt > afterNth2 > ok > isLNat1 > natsFrom1
active1 > isNatural1 > tt > afterNth2 > ok > sel2 > natsFrom1
active1 > isNatural1 > tt > U822 > ok > U312 > natsFrom1
active1 > isNatural1 > tt > U822 > ok > U412 > natsFrom1
active1 > isNatural1 > tt > U822 > ok > U612 > natsFrom1
active1 > isNatural1 > tt > U822 > ok > U912 > natsFrom1
active1 > isNatural1 > tt > U822 > ok > isLNat1 > natsFrom1
active1 > isNatural1 > tt > U822 > ok > sel2 > natsFrom1
active1 > isPLNat1 > isLNat1 > natsFrom1
active1 > take2 > ok > U312 > natsFrom1
active1 > take2 > ok > U412 > natsFrom1
active1 > take2 > ok > U612 > natsFrom1
active1 > take2 > ok > U912 > natsFrom1
active1 > take2 > ok > isLNat1 > natsFrom1
active1 > take2 > ok > sel2 > natsFrom1
0 > ok > U312 > natsFrom1
0 > ok > U412 > natsFrom1
0 > ok > U612 > natsFrom1
0 > ok > U912 > natsFrom1
0 > ok > isLNat1 > natsFrom1
0 > ok > sel2 > natsFrom1
top > natsFrom1

Status:
U912: [1,2]
sel2: [2,1]
take2: [2,1]
U712: [2,1]
U212: [1,2]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U1012: [1,2]
pair2: [1,2]
s1: [1]
top: []
U513: [2,1,3]
nil: []
natsFrom1: [1]
PROPER1: [1]
afterNth2: [1,2]
U312: [1,2]
U113: [1,2,3]
0: []
cons2: [2,1]
U822: [2,1]
U812: [1,2]
U612: [2,1]
U412: [1,2]
isLNat1: [1]
and1: [1]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(212) Obligation:

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

PROPER(fst(X)) → PROPER(X)
PROPER(snd(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


PROPER(snd(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  PROPER(x1)
fst(x1)  =  x1
snd(x1)  =  snd(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x2, x3)
tt  =  tt
mark(x1)  =  x1
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  x2
U41(x1, x2)  =  x2
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  x2
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  x2
and(x1, x2)  =  x2
isNatural(x1)  =  x1
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
PROPER1 > natsFrom1
proper1 > snd1 > U612 > natsFrom1
proper1 > snd1 > isLNat1 > ok > natsFrom1
proper1 > snd1 > isPLNat1 > ok > natsFrom1
proper1 > U1012 > ok > natsFrom1
proper1 > tt > splitAt2 > U814 > natsFrom1
proper1 > tt > splitAt2 > ok > natsFrom1
proper1 > tt > s1 > natsFrom1
proper1 > tt > afterNth2 > U113 > natsFrom1
proper1 > tt > afterNth2 > isLNat1 > ok > natsFrom1
proper1 > tt > pair2 > U212 > ok > natsFrom1
proper1 > tt > pair2 > cons2 > natsFrom1
proper1 > tt > pair2 > U612 > natsFrom1
proper1 > tt > nil > ok > natsFrom1
proper1 > U512 > ok > natsFrom1
proper1 > U822 > pair2 > U212 > ok > natsFrom1
proper1 > U822 > pair2 > cons2 > natsFrom1
proper1 > U822 > pair2 > U612 > natsFrom1
proper1 > take2 > ok > natsFrom1
proper1 > 0 > natsFrom1
proper1 > sel2 > natsFrom1
top > active1 > snd1 > U612 > natsFrom1
top > active1 > snd1 > isLNat1 > ok > natsFrom1
top > active1 > snd1 > isPLNat1 > ok > natsFrom1
top > active1 > U1012 > ok > natsFrom1
top > active1 > tt > splitAt2 > U814 > natsFrom1
top > active1 > tt > splitAt2 > ok > natsFrom1
top > active1 > tt > s1 > natsFrom1
top > active1 > tt > afterNth2 > U113 > natsFrom1
top > active1 > tt > afterNth2 > isLNat1 > ok > natsFrom1
top > active1 > tt > pair2 > U212 > ok > natsFrom1
top > active1 > tt > pair2 > cons2 > natsFrom1
top > active1 > tt > pair2 > U612 > natsFrom1
top > active1 > tt > nil > ok > natsFrom1
top > active1 > U512 > ok > natsFrom1
top > active1 > U822 > pair2 > U212 > ok > natsFrom1
top > active1 > U822 > pair2 > cons2 > natsFrom1
top > active1 > U822 > pair2 > U612 > natsFrom1
top > active1 > take2 > ok > natsFrom1
top > active1 > sel2 > natsFrom1

Status:
sel2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U512: [2,1]
U212: [1,2]
isPLNat1: [1]
active1: [1]
tt: []
U814: [1,2,3,4]
U1012: [1,2]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
nil: []
natsFrom1: [1]
PROPER1: [1]
afterNth2: [1,2]
snd1: [1]
U113: [2,1,3]
0: []
cons2: [2,1]
U822: [2,1]
U612: [2,1]
isLNat1: [1]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(214) Obligation:

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

PROPER(fst(X)) → PROPER(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


PROPER(fst(X)) → PROPER(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PROPER(x1)  =  x1
fst(x1)  =  fst(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
tt  =  tt
mark(x1)  =  mark(x1)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  natsFrom(x1)
s(x1)  =  s(x1)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  isPLNat(x1)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > fst1 > U212 > mark1
active1 > fst1 > and2 > mark1
active1 > U1013 > splitAt2 > U814 > mark1
active1 > U1013 > splitAt2 > and2 > mark1
active1 > U1013 > splitAt2 > isNatural1 > mark1
active1 > tt > splitAt2 > U814 > mark1
active1 > tt > splitAt2 > and2 > mark1
active1 > tt > splitAt2 > isNatural1 > mark1
active1 > tt > natsFrom1 > mark1
active1 > tt > head1 > mark1
active1 > tt > pair2 > mark1
active1 > tt > nil > mark1
active1 > U412 > natsFrom1 > mark1
active1 > cons2 > U312 > mark1
active1 > cons2 > U814 > mark1
active1 > cons2 > U912 > mark1
active1 > cons2 > and2 > mark1
active1 > cons2 > isNatural1 > mark1
active1 > s1 > U814 > mark1
active1 > s1 > and2 > mark1
active1 > s1 > isNatural1 > mark1
active1 > afterNth2 > U113 > splitAt2 > U814 > mark1
active1 > afterNth2 > U113 > splitAt2 > and2 > mark1
active1 > afterNth2 > U113 > splitAt2 > isNatural1 > mark1
active1 > U612 > mark1
active1 > U712 > pair2 > mark1
active1 > U712 > nil > mark1
active1 > U822 > pair2 > mark1
active1 > isPLNat1 > and2 > mark1
active1 > isPLNat1 > isNatural1 > mark1
active1 > tail1 > mark1
active1 > take2 > mark1
active1 > sel2 > U513 > head1 > mark1
active1 > sel2 > and2 > mark1
active1 > sel2 > isNatural1 > mark1
top > proper1 > fst1 > U212 > mark1
top > proper1 > fst1 > and2 > mark1
top > proper1 > U1013 > splitAt2 > U814 > mark1
top > proper1 > U1013 > splitAt2 > and2 > mark1
top > proper1 > U1013 > splitAt2 > isNatural1 > mark1
top > proper1 > tt > splitAt2 > U814 > mark1
top > proper1 > tt > splitAt2 > and2 > mark1
top > proper1 > tt > splitAt2 > isNatural1 > mark1
top > proper1 > tt > natsFrom1 > mark1
top > proper1 > tt > head1 > mark1
top > proper1 > tt > pair2 > mark1
top > proper1 > tt > nil > mark1
top > proper1 > U412 > natsFrom1 > mark1
top > proper1 > cons2 > U312 > mark1
top > proper1 > cons2 > U814 > mark1
top > proper1 > cons2 > U912 > mark1
top > proper1 > cons2 > and2 > mark1
top > proper1 > cons2 > isNatural1 > mark1
top > proper1 > s1 > U814 > mark1
top > proper1 > s1 > and2 > mark1
top > proper1 > s1 > isNatural1 > mark1
top > proper1 > afterNth2 > U113 > splitAt2 > U814 > mark1
top > proper1 > afterNth2 > U113 > splitAt2 > and2 > mark1
top > proper1 > afterNth2 > U113 > splitAt2 > isNatural1 > mark1
top > proper1 > U612 > mark1
top > proper1 > U712 > pair2 > mark1
top > proper1 > U712 > nil > mark1
top > proper1 > U822 > pair2 > mark1
top > proper1 > isPLNat1 > and2 > mark1
top > proper1 > isPLNat1 > isNatural1 > mark1
top > proper1 > tail1 > mark1
top > proper1 > take2 > mark1
top > proper1 > 0 > mark1
top > proper1 > sel2 > U513 > head1 > mark1
top > proper1 > sel2 > and2 > mark1
top > proper1 > sel2 > isNatural1 > mark1

Status:
U912: [1,2]
sel2: [1,2]
mark1: [1]
and2: [2,1]
take2: [1,2]
splitAt2: [2,1]
U712: [2,1]
U212: [2,1]
U1013: [1,2,3]
isPLNat1: [1]
isNatural1: [1]
active1: [1]
tt: []
U814: [1,4,3,2]
pair2: [1,2]
s1: [1]
proper1: [1]
top: []
U513: [3,1,2]
nil: []
natsFrom1: [1]
afterNth2: [1,2]
tail1: [1]
U312: [2,1]
head1: [1]
U113: [1,3,2]
0: []
cons2: [1,2]
U822: [2,1]
U612: [2,1]
U412: [2,1]
fst1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(216) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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:

ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(U81(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U82(X1, X2)) → ACTIVE(X1)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
ACTIVE(tail(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(U81(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(U82(X1, X2)) → ACTIVE(X1)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
ACTIVE(tail(X)) → ACTIVE(X)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ACTIVE(x1)  =  x1
fst(x1)  =  fst(x1)
U101(x1, x2, x3)  =  U101(x1, x2, x3)
splitAt(x1, x2)  =  splitAt(x1, x2)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x1, x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41(x1, x2)
cons(x1, x2)  =  cons(x1, x2)
natsFrom(x1)  =  x1
s(x1)  =  x1
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x1, x2)
and(x1, x2)  =  and(x1, x2)
tail(x1)  =  tail(x1)
take(x1, x2)  =  take(x1, x2)
sel(x1, x2)  =  sel(x1, x2)
active(x1)  =  active(x1)
tt  =  tt
mark(x1)  =  mark(x1)
nil  =  nil
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  isLNat(x1)
isPLNat(x1)  =  x1
0  =  0
proper(x1)  =  proper(x1)
ok(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > U412 > mark1
active1 > U513 > head1 > mark1
active1 > U513 > afterNth2 > U113 > mark1
active1 > U513 > afterNth2 > isNatural1 > isLNat1 > and2 > mark1
active1 > U612 > mark1
active1 > U912 > mark1
active1 > tail1 > mark1
active1 > take2 > U1013 > mark1
active1 > take2 > isLNat1 > and2 > mark1
active1 > sel2 > mark1
active1 > tt > fst1 > U212 > mark1
active1 > tt > fst1 > isLNat1 > and2 > mark1
active1 > tt > splitAt2 > U712 > mark1
active1 > tt > splitAt2 > U814 > U822 > mark1
active1 > tt > splitAt2 > isNatural1 > isLNat1 > and2 > mark1
active1 > tt > snd1 > isLNat1 > and2 > mark1
active1 > tt > cons2 > U312 > mark1
active1 > tt > cons2 > U814 > U822 > mark1
active1 > tt > cons2 > isNatural1 > isLNat1 > and2 > mark1
active1 > tt > head1 > mark1
active1 > tt > afterNth2 > U113 > mark1
active1 > tt > afterNth2 > isNatural1 > isLNat1 > and2 > mark1
active1 > tt > pair2 > U212 > mark1
active1 > tt > pair2 > and2 > mark1
active1 > tt > nil > mark1
0 > tt > fst1 > U212 > mark1
0 > tt > fst1 > isLNat1 > and2 > mark1
0 > tt > splitAt2 > U712 > mark1
0 > tt > splitAt2 > U814 > U822 > mark1
0 > tt > splitAt2 > isNatural1 > isLNat1 > and2 > mark1
0 > tt > snd1 > isLNat1 > and2 > mark1
0 > tt > cons2 > U312 > mark1
0 > tt > cons2 > U814 > U822 > mark1
0 > tt > cons2 > isNatural1 > isLNat1 > and2 > mark1
0 > tt > head1 > mark1
0 > tt > afterNth2 > U113 > mark1
0 > tt > afterNth2 > isNatural1 > isLNat1 > and2 > mark1
0 > tt > pair2 > U212 > mark1
0 > tt > pair2 > and2 > mark1
0 > tt > nil > mark1
proper1 > U412 > mark1
proper1 > U513 > head1 > mark1
proper1 > U513 > afterNth2 > U113 > mark1
proper1 > U513 > afterNth2 > isNatural1 > isLNat1 > and2 > mark1
proper1 > U612 > mark1
proper1 > U912 > mark1
proper1 > tail1 > mark1
proper1 > take2 > U1013 > mark1
proper1 > take2 > isLNat1 > and2 > mark1
proper1 > sel2 > mark1
proper1 > tt > fst1 > U212 > mark1
proper1 > tt > fst1 > isLNat1 > and2 > mark1
proper1 > tt > splitAt2 > U712 > mark1
proper1 > tt > splitAt2 > U814 > U822 > mark1
proper1 > tt > splitAt2 > isNatural1 > isLNat1 > and2 > mark1
proper1 > tt > snd1 > isLNat1 > and2 > mark1
proper1 > tt > cons2 > U312 > mark1
proper1 > tt > cons2 > U814 > U822 > mark1
proper1 > tt > cons2 > isNatural1 > isLNat1 > and2 > mark1
proper1 > tt > head1 > mark1
proper1 > tt > afterNth2 > U113 > mark1
proper1 > tt > afterNth2 > isNatural1 > isLNat1 > and2 > mark1
proper1 > tt > pair2 > U212 > mark1
proper1 > tt > pair2 > and2 > mark1
proper1 > tt > nil > mark1

Status:
sel2: [2,1]
U912: [2,1]
mark1: [1]
and2: [2,1]
take2: [2,1]
splitAt2: [1,2]
U712: [2,1]
U212: [1,2]
U1013: [1,3,2]
active1: [1]
isNatural1: [1]
tt: []
U814: [3,1,2,4]
pair2: [1,2]
proper1: [1]
top: []
U513: [3,1,2]
nil: []
tail1: [1]
afterNth2: [2,1]
U312: [2,1]
snd1: [1]
head1: [1]
U113: [3,1,2]
0: []
cons2: [2,1]
U822: [1,2]
U612: [1,2]
U412: [2,1]
fst1: [1]
isLNat1: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(221) Obligation:

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

ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(s(X)) → ACTIVE(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


ACTIVE(s(X)) → ACTIVE(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ACTIVE(x1)  =  ACTIVE(x1)
natsFrom(x1)  =  x1
s(x1)  =  s(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  x3
tt  =  tt
mark(x1)  =  x1
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  x2
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  x1
U21(x1, x2)  =  x2
U31(x1, x2)  =  x2
U41(x1, x2)  =  x2
cons(x1, x2)  =  cons(x1, x2)
U51(x1, x2, x3)  =  U51(x1, x2, x3)
head(x1)  =  x1
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair(x1, x2)
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x3, x4)
U82(x1, x2)  =  U82(x1, x2)
U91(x1, x2)  =  U91(x2)
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural
isLNat(x1)  =  isLNat
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel(x1, x2)
proper(x1)  =  proper(x1)
ok(x1)  =  ok
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
active1 > tt > s1 > U812 > ok > afterNth2
active1 > tt > s1 > U812 > ok > pair2
active1 > tt > s1 > U812 > ok > U822
active1 > tt > s1 > U812 > ok > sel2
active1 > tt > s1 > and2 > ok > afterNth2
active1 > tt > s1 > and2 > ok > pair2
active1 > tt > s1 > and2 > ok > U822
active1 > tt > s1 > and2 > ok > sel2
active1 > tt > s1 > isNatural > isLNat > ok > afterNth2
active1 > tt > s1 > isNatural > isLNat > ok > pair2
active1 > tt > s1 > isNatural > isLNat > ok > U822
active1 > tt > s1 > isNatural > isLNat > ok > sel2
active1 > tt > fst1
active1 > tt > cons2 > ok > afterNth2
active1 > tt > cons2 > ok > pair2
active1 > tt > cons2 > ok > U822
active1 > tt > cons2 > ok > sel2
active1 > tt > nil
active1 > U113 > ok > afterNth2
active1 > U113 > ok > pair2
active1 > U113 > ok > U822
active1 > U113 > ok > sel2
active1 > U513 > ok > afterNth2
active1 > U513 > ok > pair2
active1 > U513 > ok > U822
active1 > U513 > ok > sel2
active1 > U612 > ok > afterNth2
active1 > U612 > ok > pair2
active1 > U612 > ok > U822
active1 > U612 > ok > sel2
active1 > U712 > nil
active1 > U712 > ok > afterNth2
active1 > U712 > ok > pair2
active1 > U712 > ok > U822
active1 > U712 > ok > sel2
active1 > U911 > ok > afterNth2
active1 > U911 > ok > pair2
active1 > U911 > ok > U822
active1 > U911 > ok > sel2
active1 > isPLNat > isNatural > isLNat > ok > afterNth2
active1 > isPLNat > isNatural > isLNat > ok > pair2
active1 > isPLNat > isNatural > isLNat > ok > U822
active1 > isPLNat > isNatural > isLNat > ok > sel2
active1 > take2 > and2 > ok > afterNth2
active1 > take2 > and2 > ok > pair2
active1 > take2 > and2 > ok > U822
active1 > take2 > and2 > ok > sel2
active1 > take2 > isNatural > isLNat > ok > afterNth2
active1 > take2 > isNatural > isLNat > ok > pair2
active1 > take2 > isNatural > isLNat > ok > U822
active1 > take2 > isNatural > isLNat > ok > sel2
proper1 > tt > s1 > U812 > ok > afterNth2
proper1 > tt > s1 > U812 > ok > pair2
proper1 > tt > s1 > U812 > ok > U822
proper1 > tt > s1 > U812 > ok > sel2
proper1 > tt > s1 > and2 > ok > afterNth2
proper1 > tt > s1 > and2 > ok > pair2
proper1 > tt > s1 > and2 > ok > U822
proper1 > tt > s1 > and2 > ok > sel2
proper1 > tt > s1 > isNatural > isLNat > ok > afterNth2
proper1 > tt > s1 > isNatural > isLNat > ok > pair2
proper1 > tt > s1 > isNatural > isLNat > ok > U822
proper1 > tt > s1 > isNatural > isLNat > ok > sel2
proper1 > tt > fst1
proper1 > tt > cons2 > ok > afterNth2
proper1 > tt > cons2 > ok > pair2
proper1 > tt > cons2 > ok > U822
proper1 > tt > cons2 > ok > sel2
proper1 > tt > nil
proper1 > U113 > ok > afterNth2
proper1 > U113 > ok > pair2
proper1 > U113 > ok > U822
proper1 > U113 > ok > sel2
proper1 > U513 > ok > afterNth2
proper1 > U513 > ok > pair2
proper1 > U513 > ok > U822
proper1 > U513 > ok > sel2
proper1 > U612 > ok > afterNth2
proper1 > U612 > ok > pair2
proper1 > U612 > ok > U822
proper1 > U612 > ok > sel2
proper1 > U712 > nil
proper1 > U712 > ok > afterNth2
proper1 > U712 > ok > pair2
proper1 > U712 > ok > U822
proper1 > U712 > ok > sel2
proper1 > U911 > ok > afterNth2
proper1 > U911 > ok > pair2
proper1 > U911 > ok > U822
proper1 > U911 > ok > sel2
proper1 > isPLNat > isNatural > isLNat > ok > afterNth2
proper1 > isPLNat > isNatural > isLNat > ok > pair2
proper1 > isPLNat > isNatural > isLNat > ok > U822
proper1 > isPLNat > isNatural > isLNat > ok > sel2
proper1 > take2 > and2 > ok > afterNth2
proper1 > take2 > and2 > ok > pair2
proper1 > take2 > and2 > ok > U822
proper1 > take2 > and2 > ok > sel2
proper1 > take2 > isNatural > isLNat > ok > afterNth2
proper1 > take2 > isNatural > isLNat > ok > pair2
proper1 > take2 > isNatural > isLNat > ok > U822
proper1 > take2 > isNatural > isLNat > ok > sel2
proper1 > 0 > ok > afterNth2
proper1 > 0 > ok > pair2
proper1 > 0 > ok > U822
proper1 > 0 > ok > sel2

Status:
sel2: [1,2]
isNatural: []
and2: [1,2]
take2: [1,2]
U712: [2,1]
active1: [1]
tt: []
U911: [1]
pair2: [2,1]
s1: [1]
proper1: [1]
top: []
U513: [2,3,1]
nil: []
isPLNat: []
afterNth2: [2,1]
U113: [2,1,3]
isLNat: []
0: []
ACTIVE1: [1]
cons2: [2,1]
U822: [1,2]
U812: [1,2]
U612: [2,1]
fst1: [1]
ok: []

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(223) Obligation:

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

ACTIVE(natsFrom(X)) → ACTIVE(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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.


ACTIVE(natsFrom(X)) → ACTIVE(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ACTIVE(x1)  =  ACTIVE(x1)
natsFrom(x1)  =  natsFrom(x1)
active(x1)  =  active(x1)
U101(x1, x2, x3)  =  U101(x2, x3)
tt  =  tt
mark(x1)  =  mark
fst(x1)  =  fst(x1)
splitAt(x1, x2)  =  splitAt
U11(x1, x2, x3)  =  U11(x1, x2, x3)
snd(x1)  =  snd(x1)
U21(x1, x2)  =  U21(x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2)  =  U41
cons(x1, x2)  =  cons(x1, x2)
s(x1)  =  s
U51(x1, x2, x3)  =  U51(x2, x3)
head(x1)  =  head(x1)
afterNth(x1, x2)  =  afterNth(x1, x2)
U61(x1, x2)  =  U61(x1, x2)
U71(x1, x2)  =  U71(x1, x2)
pair(x1, x2)  =  pair
nil  =  nil
U81(x1, x2, x3, x4)  =  U81(x1, x2, x3, x4)
U82(x1, x2)  =  U82(x1)
U91(x1, x2)  =  x1
and(x1, x2)  =  and(x1, x2)
isNatural(x1)  =  isNatural(x1)
isLNat(x1)  =  x1
isPLNat(x1)  =  isPLNat
tail(x1)  =  x1
take(x1, x2)  =  take(x1, x2)
0  =  0
sel(x1, x2)  =  sel
proper(x1)  =  x1
ok(x1)  =  x1
top(x1)  =  top

Lexicographic path order with status [LPO].
Precedence:
splitAt > active1 > U1012 > fst1 > and2 > mark > natsFrom1
splitAt > active1 > U1012 > fst1 > and2 > mark > snd1
splitAt > active1 > U1012 > fst1 > and2 > mark > cons2
splitAt > active1 > U1012 > fst1 > and2 > mark > head1
splitAt > active1 > U1012 > fst1 > and2 > mark > afterNth2
splitAt > active1 > U1012 > fst1 > and2 > mark > U612
splitAt > active1 > U1012 > fst1 > and2 > mark > U712
splitAt > active1 > U1012 > fst1 > and2 > mark > U814
splitAt > active1 > U1012 > fst1 > isPLNat > mark > natsFrom1
splitAt > active1 > U1012 > fst1 > isPLNat > mark > snd1
splitAt > active1 > U1012 > fst1 > isPLNat > mark > cons2
splitAt > active1 > U1012 > fst1 > isPLNat > mark > head1
splitAt > active1 > U1012 > fst1 > isPLNat > mark > afterNth2
splitAt > active1 > U1012 > fst1 > isPLNat > mark > U612
splitAt > active1 > U1012 > fst1 > isPLNat > mark > U712
splitAt > active1 > U1012 > fst1 > isPLNat > mark > U814
splitAt > active1 > tt > s > mark > natsFrom1
splitAt > active1 > tt > s > mark > snd1
splitAt > active1 > tt > s > mark > cons2
splitAt > active1 > tt > s > mark > head1
splitAt > active1 > tt > s > mark > afterNth2
splitAt > active1 > tt > s > mark > U612
splitAt > active1 > tt > s > mark > U712
splitAt > active1 > tt > s > mark > U814
splitAt > active1 > U113 > mark > natsFrom1
splitAt > active1 > U113 > mark > snd1
splitAt > active1 > U113 > mark > cons2
splitAt > active1 > U113 > mark > head1
splitAt > active1 > U113 > mark > afterNth2
splitAt > active1 > U113 > mark > U612
splitAt > active1 > U113 > mark > U712
splitAt > active1 > U113 > mark > U814
splitAt > active1 > U312
splitAt > active1 > U41 > s > mark > natsFrom1
splitAt > active1 > U41 > s > mark > snd1
splitAt > active1 > U41 > s > mark > cons2
splitAt > active1 > U41 > s > mark > head1
splitAt > active1 > U41 > s > mark > afterNth2
splitAt > active1 > U41 > s > mark > U612
splitAt > active1 > U41 > s > mark > U712
splitAt > active1 > U41 > s > mark > U814
splitAt > active1 > U512 > mark > natsFrom1
splitAt > active1 > U512 > mark > snd1
splitAt > active1 > U512 > mark > cons2
splitAt > active1 > U512 > mark > head1
splitAt > active1 > U512 > mark > afterNth2
splitAt > active1 > U512 > mark > U612
splitAt > active1 > U512 > mark > U712
splitAt > active1 > U512 > mark > U814
splitAt > active1 > U821 > mark > natsFrom1
splitAt > active1 > U821 > mark > snd1
splitAt > active1 > U821 > mark > cons2
splitAt > active1 > U821 > mark > head1
splitAt > active1 > U821 > mark > afterNth2
splitAt > active1 > U821 > mark > U612
splitAt > active1 > U821 > mark > U712
splitAt > active1 > U821 > mark > U814
splitAt > active1 > take2 > mark > natsFrom1
splitAt > active1 > take2 > mark > snd1
splitAt > active1 > take2 > mark > cons2
splitAt > active1 > take2 > mark > head1
splitAt > active1 > take2 > mark > afterNth2
splitAt > active1 > take2 > mark > U612
splitAt > active1 > take2 > mark > U712
splitAt > active1 > take2 > mark > U814
pair > U211 > active1 > U1012 > fst1 > and2 > mark > natsFrom1
pair > U211 > active1 > U1012 > fst1 > and2 > mark > snd1
pair > U211 > active1 > U1012 > fst1 > and2 > mark > cons2
pair > U211 > active1 > U1012 > fst1 > and2 > mark > head1
pair > U211 > active1 > U1012 > fst1 > and2 > mark > afterNth2
pair > U211 > active1 > U1012 > fst1 > and2 > mark > U612
pair > U211 > active1 > U1012 > fst1 > and2 > mark > U712
pair > U211 > active1 > U1012 > fst1 > and2 > mark > U814
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > natsFrom1
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > snd1
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > cons2
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > head1
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > afterNth2
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > U612
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > U712
pair > U211 > active1 > U1012 > fst1 > isPLNat > mark > U814
pair > U211 > active1 > tt > s > mark > natsFrom1
pair > U211 > active1 > tt > s > mark > snd1
pair > U211 > active1 > tt > s > mark > cons2
pair > U211 > active1 > tt > s > mark > head1
pair > U211 > active1 > tt > s > mark > afterNth2
pair > U211 > active1 > tt > s > mark > U612
pair > U211 > active1 > tt > s > mark > U712
pair > U211 > active1 > tt > s > mark > U814
pair > U211 > active1 > U113 > mark > natsFrom1
pair > U211 > active1 > U113 > mark > snd1
pair > U211 > active1 > U113 > mark > cons2
pair > U211 > active1 > U113 > mark > head1
pair > U211 > active1 > U113 > mark > afterNth2
pair > U211 > active1 > U113 > mark > U612
pair > U211 > active1 > U113 > mark > U712
pair > U211 > active1 > U113 > mark > U814
pair > U211 > active1 > U312
pair > U211 > active1 > U41 > s > mark > natsFrom1
pair > U211 > active1 > U41 > s > mark > snd1
pair > U211 > active1 > U41 > s > mark > cons2
pair > U211 > active1 > U41 > s > mark > head1
pair > U211 > active1 > U41 > s > mark > afterNth2
pair > U211 > active1 > U41 > s > mark > U612
pair > U211 > active1 > U41 > s > mark > U712
pair > U211 > active1 > U41 > s > mark > U814
pair > U211 > active1 > U512 > mark > natsFrom1
pair > U211 > active1 > U512 > mark > snd1
pair > U211 > active1 > U512 > mark > cons2
pair > U211 > active1 > U512 > mark > head1
pair > U211 > active1 > U512 > mark > afterNth2
pair > U211 > active1 > U512 > mark > U612
pair > U211 > active1 > U512 > mark > U712
pair > U211 > active1 > U512 > mark > U814
pair > U211 > active1 > U821 > mark > natsFrom1
pair > U211 > active1 > U821 > mark > snd1
pair > U211 > active1 > U821 > mark > cons2
pair > U211 > active1 > U821 > mark > head1
pair > U211 > active1 > U821 > mark > afterNth2
pair > U211 > active1 > U821 > mark > U612
pair > U211 > active1 > U821 > mark > U712
pair > U211 > active1 > U821 > mark > U814
pair > U211 > active1 > take2 > mark > natsFrom1
pair > U211 > active1 > take2 > mark > snd1
pair > U211 > active1 > take2 > mark > cons2
pair > U211 > active1 > take2 > mark > head1
pair > U211 > active1 > take2 > mark > afterNth2
pair > U211 > active1 > take2 > mark > U612
pair > U211 > active1 > take2 > mark > U712
pair > U211 > active1 > take2 > mark > U814
nil > tt > s > mark > natsFrom1
nil > tt > s > mark > snd1
nil > tt > s > mark > cons2
nil > tt > s > mark > head1
nil > tt > s > mark > afterNth2
nil > tt > s > mark > U612
nil > tt > s > mark > U712
nil > tt > s > mark > U814
isNatural1 > tt > s > mark > natsFrom1
isNatural1 > tt > s > mark > snd1
isNatural1 > tt > s > mark > cons2
isNatural1 > tt > s > mark > head1
isNatural1 > tt > s > mark > afterNth2
isNatural1 > tt > s > mark > U612
isNatural1 > tt > s > mark > U712
isNatural1 > tt > s > mark > U814
isNatural1 > and2 > mark > natsFrom1
isNatural1 > and2 > mark > snd1
isNatural1 > and2 > mark > cons2
isNatural1 > and2 > mark > head1
isNatural1 > and2 > mark > afterNth2
isNatural1 > and2 > mark > U612
isNatural1 > and2 > mark > U712
isNatural1 > and2 > mark > U814
0 > tt > s > mark > natsFrom1
0 > tt > s > mark > snd1
0 > tt > s > mark > cons2
0 > tt > s > mark > head1
0 > tt > s > mark > afterNth2
0 > tt > s > mark > U612
0 > tt > s > mark > U712
0 > tt > s > mark > U814
sel > active1 > U1012 > fst1 > and2 > mark > natsFrom1
sel > active1 > U1012 > fst1 > and2 > mark > snd1
sel > active1 > U1012 > fst1 > and2 > mark > cons2
sel > active1 > U1012 > fst1 > and2 > mark > head1
sel > active1 > U1012 > fst1 > and2 > mark > afterNth2
sel > active1 > U1012 > fst1 > and2 > mark > U612
sel > active1 > U1012 > fst1 > and2 > mark > U712
sel > active1 > U1012 > fst1 > and2 > mark > U814
sel > active1 > U1012 > fst1 > isPLNat > mark > natsFrom1
sel > active1 > U1012 > fst1 > isPLNat > mark > snd1
sel > active1 > U1012 > fst1 > isPLNat > mark > cons2
sel > active1 > U1012 > fst1 > isPLNat > mark > head1
sel > active1 > U1012 > fst1 > isPLNat > mark > afterNth2
sel > active1 > U1012 > fst1 > isPLNat > mark > U612
sel > active1 > U1012 > fst1 > isPLNat > mark > U712
sel > active1 > U1012 > fst1 > isPLNat > mark > U814
sel > active1 > tt > s > mark > natsFrom1
sel > active1 > tt > s > mark > snd1
sel > active1 > tt > s > mark > cons2
sel > active1 > tt > s > mark > head1
sel > active1 > tt > s > mark > afterNth2
sel > active1 > tt > s > mark > U612
sel > active1 > tt > s > mark > U712
sel > active1 > tt > s > mark > U814
sel > active1 > U113 > mark > natsFrom1
sel > active1 > U113 > mark > snd1
sel > active1 > U113 > mark > cons2
sel > active1 > U113 > mark > head1
sel > active1 > U113 > mark > afterNth2
sel > active1 > U113 > mark > U612
sel > active1 > U113 > mark > U712
sel > active1 > U113 > mark > U814
sel > active1 > U312
sel > active1 > U41 > s > mark > natsFrom1
sel > active1 > U41 > s > mark > snd1
sel > active1 > U41 > s > mark > cons2
sel > active1 > U41 > s > mark > head1
sel > active1 > U41 > s > mark > afterNth2
sel > active1 > U41 > s > mark > U612
sel > active1 > U41 > s > mark > U712
sel > active1 > U41 > s > mark > U814
sel > active1 > U512 > mark > natsFrom1
sel > active1 > U512 > mark > snd1
sel > active1 > U512 > mark > cons2
sel > active1 > U512 > mark > head1
sel > active1 > U512 > mark > afterNth2
sel > active1 > U512 > mark > U612
sel > active1 > U512 > mark > U712
sel > active1 > U512 > mark > U814
sel > active1 > U821 > mark > natsFrom1
sel > active1 > U821 > mark > snd1
sel > active1 > U821 > mark > cons2
sel > active1 > U821 > mark > head1
sel > active1 > U821 > mark > afterNth2
sel > active1 > U821 > mark > U612
sel > active1 > U821 > mark > U712
sel > active1 > U821 > mark > U814
sel > active1 > take2 > mark > natsFrom1
sel > active1 > take2 > mark > snd1
sel > active1 > take2 > mark > cons2
sel > active1 > take2 > mark > head1
sel > active1 > take2 > mark > afterNth2
sel > active1 > take2 > mark > U612
sel > active1 > take2 > mark > U712
sel > active1 > take2 > mark > U814
top > active1 > U1012 > fst1 > and2 > mark > natsFrom1
top > active1 > U1012 > fst1 > and2 > mark > snd1
top > active1 > U1012 > fst1 > and2 > mark > cons2
top > active1 > U1012 > fst1 > and2 > mark > head1
top > active1 > U1012 > fst1 > and2 > mark > afterNth2
top > active1 > U1012 > fst1 > and2 > mark > U612
top > active1 > U1012 > fst1 > and2 > mark > U712
top > active1 > U1012 > fst1 > and2 > mark > U814
top > active1 > U1012 > fst1 > isPLNat > mark > natsFrom1
top > active1 > U1012 > fst1 > isPLNat > mark > snd1
top > active1 > U1012 > fst1 > isPLNat > mark > cons2
top > active1 > U1012 > fst1 > isPLNat > mark > head1
top > active1 > U1012 > fst1 > isPLNat > mark > afterNth2
top > active1 > U1012 > fst1 > isPLNat > mark > U612
top > active1 > U1012 > fst1 > isPLNat > mark > U712
top > active1 > U1012 > fst1 > isPLNat > mark > U814
top > active1 > tt > s > mark > natsFrom1
top > active1 > tt > s > mark > snd1
top > active1 > tt > s > mark > cons2
top > active1 > tt > s > mark > head1
top > active1 > tt > s > mark > afterNth2
top > active1 > tt > s > mark > U612
top > active1 > tt > s > mark > U712
top > active1 > tt > s > mark > U814
top > active1 > U113 > mark > natsFrom1
top > active1 > U113 > mark > snd1
top > active1 > U113 > mark > cons2
top > active1 > U113 > mark > head1
top > active1 > U113 > mark > afterNth2
top > active1 > U113 > mark > U612
top > active1 > U113 > mark > U712
top > active1 > U113 > mark > U814
top > active1 > U312
top > active1 > U41 > s > mark > natsFrom1
top > active1 > U41 > s > mark > snd1
top > active1 > U41 > s > mark > cons2
top > active1 > U41 > s > mark > head1
top > active1 > U41 > s > mark > afterNth2
top > active1 > U41 > s > mark > U612
top > active1 > U41 > s > mark > U712
top > active1 > U41 > s > mark > U814
top > active1 > U512 > mark > natsFrom1
top > active1 > U512 > mark > snd1
top > active1 > U512 > mark > cons2
top > active1 > U512 > mark > head1
top > active1 > U512 > mark > afterNth2
top > active1 > U512 > mark > U612
top > active1 > U512 > mark > U712
top > active1 > U512 > mark > U814
top > active1 > U821 > mark > natsFrom1
top > active1 > U821 > mark > snd1
top > active1 > U821 > mark > cons2
top > active1 > U821 > mark > head1
top > active1 > U821 > mark > afterNth2
top > active1 > U821 > mark > U612
top > active1 > U821 > mark > U712
top > active1 > U821 > mark > U814
top > active1 > take2 > mark > natsFrom1
top > active1 > take2 > mark > snd1
top > active1 > take2 > mark > cons2
top > active1 > take2 > mark > head1
top > active1 > take2 > mark > afterNth2
top > active1 > take2 > mark > U612
top > active1 > take2 > mark > U712
top > active1 > take2 > mark > U814

Status:
and2: [2,1]
take2: [1,2]
U712: [1,2]
U512: [2,1]
active1: [1]
isNatural1: [1]
tt: []
U814: [2,3,4,1]
U41: []
U1012: [2,1]
top: []
nil: []
natsFrom1: [1]
isPLNat: []
afterNth2: [2,1]
sel: []
U312: [2,1]
snd1: [1]
U821: [1]
head1: [1]
U113: [3,1,2]
s: []
0: []
ACTIVE1: [1]
splitAt: []
cons2: [2,1]
U612: [1,2]
mark: []
fst1: [1]
pair: []
U211: [1]

The following usable rules [FROCOS05] were oriented:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

(225) Obligation:

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

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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

(226) PisEmptyProof (EQUIVALENT transformation)

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

(227) TRUE

(228) Obligation:

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

TOP(ok(X)) → TOP(active(X))
TOP(mark(X)) → TOP(proper(X))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

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