### (0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

U11(tt, N, X, XS) → U12(splitAt(activate(N), activate(XS)), activate(X))
U12(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
afterNth(N, XS) → snd(splitAt(N, XS))
and(tt, X) → activate(X)
fst(pair(X, Y)) → X
natsFrom(N) → cons(N, n__natsFrom(s(N)))
snd(pair(X, Y)) → Y
splitAt(0, XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U11(tt, N, X, activate(XS))
tail(cons(N, XS)) → activate(XS)
take(N, XS) → fst(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

Rewrite Strategy: FULL

### (1) DecreasingLoopProof (EQUIVALENT transformation)

The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
splitAt(s(N), cons(X, XS)) →+ U12(splitAt(N, XS), activate(X))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0].
The pumping substitution is [N / s(N), XS / cons(X, XS)].
The result substitution is [ ].

### (3) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

### (4) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

U11(tt, N, X, XS) → U12(splitAt(activate(N), activate(XS)), activate(X))
U12(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
afterNth(N, XS) → snd(splitAt(N, XS))
and(tt, X) → activate(X)
fst(pair(X, Y)) → X
natsFrom(N) → cons(N, n__natsFrom(s(N)))
snd(pair(X, Y)) → Y
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U11(tt, N, X, activate(XS))
tail(cons(N, XS)) → activate(XS)
take(N, XS) → fst(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

S is empty.
Rewrite Strategy: FULL

Infered types.

### (6) Obligation:

TRS:
Rules:
U11(tt, N, X, XS) → U12(splitAt(activate(N), activate(XS)), activate(X))
U12(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
afterNth(N, XS) → snd(splitAt(N, XS))
and(tt, X) → activate(X)
fst(pair(X, Y)) → X
natsFrom(N) → cons(N, n__natsFrom(s(N)))
snd(pair(X, Y)) → Y
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U11(tt, N, X, activate(XS))
tail(cons(N, XS)) → activate(XS)
take(N, XS) → fst(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

Types:
U11 :: tt → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
tt :: tt
U12 :: pair → cons:s:n__natsFrom:0':nil → pair
splitAt :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
activate :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
pair :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
cons :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
afterNth :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
snd :: pair → cons:s:n__natsFrom:0':nil
and :: tt → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
fst :: pair → cons:s:n__natsFrom:0':nil
natsFrom :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
n__natsFrom :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
s :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
sel :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
0' :: cons:s:n__natsFrom:0':nil
nil :: cons:s:n__natsFrom:0':nil
tail :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
take :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
hole_pair1_0 :: pair
hole_tt2_0 :: tt
hole_cons:s:n__natsFrom:0':nil3_0 :: cons:s:n__natsFrom:0':nil
gen_cons:s:n__natsFrom:0':nil4_0 :: Nat → cons:s:n__natsFrom:0':nil

### (7) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
splitAt

### (8) Obligation:

TRS:
Rules:
U11(tt, N, X, XS) → U12(splitAt(activate(N), activate(XS)), activate(X))
U12(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
afterNth(N, XS) → snd(splitAt(N, XS))
and(tt, X) → activate(X)
fst(pair(X, Y)) → X
natsFrom(N) → cons(N, n__natsFrom(s(N)))
snd(pair(X, Y)) → Y
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U11(tt, N, X, activate(XS))
tail(cons(N, XS)) → activate(XS)
take(N, XS) → fst(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

Types:
U11 :: tt → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
tt :: tt
U12 :: pair → cons:s:n__natsFrom:0':nil → pair
splitAt :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
activate :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
pair :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
cons :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
afterNth :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
snd :: pair → cons:s:n__natsFrom:0':nil
and :: tt → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
fst :: pair → cons:s:n__natsFrom:0':nil
natsFrom :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
n__natsFrom :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
s :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
sel :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
0' :: cons:s:n__natsFrom:0':nil
nil :: cons:s:n__natsFrom:0':nil
tail :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
take :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
hole_pair1_0 :: pair
hole_tt2_0 :: tt
hole_cons:s:n__natsFrom:0':nil3_0 :: cons:s:n__natsFrom:0':nil
gen_cons:s:n__natsFrom:0':nil4_0 :: Nat → cons:s:n__natsFrom:0':nil

Generator Equations:
gen_cons:s:n__natsFrom:0':nil4_0(0) ⇔ 0'
gen_cons:s:n__natsFrom:0':nil4_0(+(x, 1)) ⇔ cons(0', gen_cons:s:n__natsFrom:0':nil4_0(x))

The following defined symbols remain to be analysed:
splitAt

### (9) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol splitAt.

### (10) Obligation:

TRS:
Rules:
U11(tt, N, X, XS) → U12(splitAt(activate(N), activate(XS)), activate(X))
U12(pair(YS, ZS), X) → pair(cons(activate(X), YS), ZS)
afterNth(N, XS) → snd(splitAt(N, XS))
and(tt, X) → activate(X)
fst(pair(X, Y)) → X
natsFrom(N) → cons(N, n__natsFrom(s(N)))
snd(pair(X, Y)) → Y
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → U11(tt, N, X, activate(XS))
tail(cons(N, XS)) → activate(XS)
take(N, XS) → fst(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

Types:
U11 :: tt → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
tt :: tt
U12 :: pair → cons:s:n__natsFrom:0':nil → pair
splitAt :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
activate :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
pair :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → pair
cons :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
afterNth :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
snd :: pair → cons:s:n__natsFrom:0':nil
and :: tt → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
fst :: pair → cons:s:n__natsFrom:0':nil
natsFrom :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
n__natsFrom :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
s :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
sel :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
0' :: cons:s:n__natsFrom:0':nil
nil :: cons:s:n__natsFrom:0':nil
tail :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
take :: cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil → cons:s:n__natsFrom:0':nil
hole_pair1_0 :: pair
hole_tt2_0 :: tt
hole_cons:s:n__natsFrom:0':nil3_0 :: cons:s:n__natsFrom:0':nil
gen_cons:s:n__natsFrom:0':nil4_0 :: Nat → cons:s:n__natsFrom:0':nil

Generator Equations:
gen_cons:s:n__natsFrom:0':nil4_0(0) ⇔ 0'
gen_cons:s:n__natsFrom:0':nil4_0(+(x, 1)) ⇔ cons(0', gen_cons:s:n__natsFrom:0':nil4_0(x))

No more defined symbols left to analyse.