### (0) Obligation:

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

natsFrom(N) → cons(N, n__natsFrom(s(N)))
fst(pair(XS, YS)) → XS
snd(pair(XS, YS)) → YS
splitAt(0, XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → u(splitAt(N, activate(XS)), N, X, activate(XS))
u(pair(YS, ZS), N, X, XS) → pair(cons(activate(X), YS), ZS)
head(cons(N, XS)) → N
tail(cons(N, XS)) → activate(XS)
sel(N, XS) → head(afterNth(N, XS))
take(N, XS) → fst(splitAt(N, XS))
afterNth(N, XS) → snd(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)) →+ u(splitAt(N, XS), N, X, activate(XS))
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:

natsFrom(N) → cons(N, n__natsFrom(s(N)))
fst(pair(XS, YS)) → XS
snd(pair(XS, YS)) → YS
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → u(splitAt(N, activate(XS)), N, X, activate(XS))
u(pair(YS, ZS), N, X, XS) → pair(cons(activate(X), YS), ZS)
head(cons(N, XS)) → N
tail(cons(N, XS)) → activate(XS)
sel(N, XS) → head(afterNth(N, XS))
take(N, XS) → fst(splitAt(N, XS))
afterNth(N, XS) → snd(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

S is empty.
Rewrite Strategy: FULL

### (5) SlicingProof (LOWER BOUND(ID) transformation)

Sliced the following arguments:
u/1

### (6) Obligation:

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

natsFrom(N) → cons(N, n__natsFrom(s(N)))
fst(pair(XS, YS)) → XS
snd(pair(XS, YS)) → YS
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → u(splitAt(N, activate(XS)), X, activate(XS))
u(pair(YS, ZS), X, XS) → pair(cons(activate(X), YS), ZS)
head(cons(N, XS)) → N
tail(cons(N, XS)) → activate(XS)
sel(N, XS) → head(afterNth(N, XS))
take(N, XS) → fst(splitAt(N, XS))
afterNth(N, XS) → snd(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.

### (8) Obligation:

TRS:
Rules:
natsFrom(N) → cons(N, n__natsFrom(s(N)))
fst(pair(XS, YS)) → XS
snd(pair(XS, YS)) → YS
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → u(splitAt(N, activate(XS)), X, activate(XS))
u(pair(YS, ZS), X, XS) → pair(cons(activate(X), YS), ZS)
head(cons(N, XS)) → N
tail(cons(N, XS)) → activate(XS)
sel(N, XS) → head(afterNth(N, XS))
take(N, XS) → fst(splitAt(N, XS))
afterNth(N, XS) → snd(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

Types:
natsFrom :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
cons :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
n__natsFrom :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
s :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
fst :: pair → s:n__natsFrom:cons:0':nil
pair :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
snd :: pair → s:n__natsFrom:cons:0':nil
splitAt :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
0' :: s:n__natsFrom:cons:0':nil
nil :: s:n__natsFrom:cons:0':nil
u :: pair → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
activate :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
head :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
tail :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
sel :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
afterNth :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
take :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
hole_s:n__natsFrom:cons:0':nil1_0 :: s:n__natsFrom:cons:0':nil
hole_pair2_0 :: pair
gen_s:n__natsFrom:cons:0':nil3_0 :: Nat → s:n__natsFrom:cons:0':nil

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

Heuristically decided to analyse the following defined symbols:
splitAt

### (10) Obligation:

TRS:
Rules:
natsFrom(N) → cons(N, n__natsFrom(s(N)))
fst(pair(XS, YS)) → XS
snd(pair(XS, YS)) → YS
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → u(splitAt(N, activate(XS)), X, activate(XS))
u(pair(YS, ZS), X, XS) → pair(cons(activate(X), YS), ZS)
head(cons(N, XS)) → N
tail(cons(N, XS)) → activate(XS)
sel(N, XS) → head(afterNth(N, XS))
take(N, XS) → fst(splitAt(N, XS))
afterNth(N, XS) → snd(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

Types:
natsFrom :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
cons :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
n__natsFrom :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
s :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
fst :: pair → s:n__natsFrom:cons:0':nil
pair :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
snd :: pair → s:n__natsFrom:cons:0':nil
splitAt :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
0' :: s:n__natsFrom:cons:0':nil
nil :: s:n__natsFrom:cons:0':nil
u :: pair → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
activate :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
head :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
tail :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
sel :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
afterNth :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
take :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
hole_s:n__natsFrom:cons:0':nil1_0 :: s:n__natsFrom:cons:0':nil
hole_pair2_0 :: pair
gen_s:n__natsFrom:cons:0':nil3_0 :: Nat → s:n__natsFrom:cons:0':nil

Generator Equations:
gen_s:n__natsFrom:cons:0':nil3_0(0) ⇔ 0'
gen_s:n__natsFrom:cons:0':nil3_0(+(x, 1)) ⇔ cons(0', gen_s:n__natsFrom:cons:0':nil3_0(x))

The following defined symbols remain to be analysed:
splitAt

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

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

### (12) Obligation:

TRS:
Rules:
natsFrom(N) → cons(N, n__natsFrom(s(N)))
fst(pair(XS, YS)) → XS
snd(pair(XS, YS)) → YS
splitAt(0', XS) → pair(nil, XS)
splitAt(s(N), cons(X, XS)) → u(splitAt(N, activate(XS)), X, activate(XS))
u(pair(YS, ZS), X, XS) → pair(cons(activate(X), YS), ZS)
head(cons(N, XS)) → N
tail(cons(N, XS)) → activate(XS)
sel(N, XS) → head(afterNth(N, XS))
take(N, XS) → fst(splitAt(N, XS))
afterNth(N, XS) → snd(splitAt(N, XS))
natsFrom(X) → n__natsFrom(X)
activate(n__natsFrom(X)) → natsFrom(X)
activate(X) → X

Types:
natsFrom :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
cons :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
n__natsFrom :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
s :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
fst :: pair → s:n__natsFrom:cons:0':nil
pair :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
snd :: pair → s:n__natsFrom:cons:0':nil
splitAt :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
0' :: s:n__natsFrom:cons:0':nil
nil :: s:n__natsFrom:cons:0':nil
u :: pair → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → pair
activate :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
head :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
tail :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
sel :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
afterNth :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
take :: s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil → s:n__natsFrom:cons:0':nil
hole_s:n__natsFrom:cons:0':nil1_0 :: s:n__natsFrom:cons:0':nil
hole_pair2_0 :: pair
gen_s:n__natsFrom:cons:0':nil3_0 :: Nat → s:n__natsFrom:cons:0':nil

Generator Equations:
gen_s:n__natsFrom:cons:0':nil3_0(0) ⇔ 0'
gen_s:n__natsFrom:cons:0':nil3_0(+(x, 1)) ⇔ cons(0', gen_s:n__natsFrom:cons:0':nil3_0(x))

No more defined symbols left to analyse.