(0) Obligation:

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

terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0) → 0
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0) → 0
dbl(s(X)) → s(s(dbl(X)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
first(0, X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Rewrite Strategy: INNERMOST

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

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

terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

S is empty.
Rewrite Strategy: INNERMOST

(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(4) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

(5) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
sqr, add, dbl, activate

They will be analysed ascendingly in the following order:
add < sqr
dbl < sqr

(6) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

The following defined symbols remain to be analysed:
add, sqr, dbl, activate

They will be analysed ascendingly in the following order:
add < sqr
dbl < sqr

(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)

Induction Base:
add(gen_s:0'5_0(0), gen_s:0'5_0(b)) →RΩ(1)
gen_s:0'5_0(b)

Induction Step:
add(gen_s:0'5_0(+(n7_0, 1)), gen_s:0'5_0(b)) →RΩ(1)
s(add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b))) →IH
s(gen_s:0'5_0(+(b, c8_0)))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(8) Complex Obligation (BEST)

(9) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

The following defined symbols remain to be analysed:
dbl, sqr, activate

They will be analysed ascendingly in the following order:
dbl < sqr

(10) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
dbl(gen_s:0'5_0(n848_0)) → gen_s:0'5_0(*(2, n848_0)), rt ∈ Ω(1 + n8480)

Induction Base:
dbl(gen_s:0'5_0(0)) →RΩ(1)
0'

Induction Step:
dbl(gen_s:0'5_0(+(n848_0, 1))) →RΩ(1)
s(s(dbl(gen_s:0'5_0(n848_0)))) →IH
s(s(gen_s:0'5_0(*(2, c849_0))))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(11) Complex Obligation (BEST)

(12) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n848_0)) → gen_s:0'5_0(*(2, n848_0)), rt ∈ Ω(1 + n8480)

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

The following defined symbols remain to be analysed:
sqr, activate

(13) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
sqr(gen_s:0'5_0(n1178_0)) → gen_s:0'5_0(*(n1178_0, n1178_0)), rt ∈ Ω(1 + n11780 + n117802 + n117803)

Induction Base:
sqr(gen_s:0'5_0(0)) →RΩ(1)
0'

Induction Step:
sqr(gen_s:0'5_0(+(n1178_0, 1))) →RΩ(1)
s(add(sqr(gen_s:0'5_0(n1178_0)), dbl(gen_s:0'5_0(n1178_0)))) →IH
s(add(gen_s:0'5_0(*(c1179_0, c1179_0)), dbl(gen_s:0'5_0(n1178_0)))) →LΩ(1 + n11780)
s(add(gen_s:0'5_0(*(n1178_0, n1178_0)), gen_s:0'5_0(*(2, n1178_0)))) →LΩ(1 + n117802)
s(gen_s:0'5_0(+(*(n1178_0, n1178_0), *(2, n1178_0))))

We have rt ∈ Ω(n3) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n3).

(14) Complex Obligation (BEST)

(15) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n848_0)) → gen_s:0'5_0(*(2, n848_0)), rt ∈ Ω(1 + n8480)
sqr(gen_s:0'5_0(n1178_0)) → gen_s:0'5_0(*(n1178_0, n1178_0)), rt ∈ Ω(1 + n11780 + n117802 + n117803)

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

The following defined symbols remain to be analysed:
activate

(16) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

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

(17) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n848_0)) → gen_s:0'5_0(*(2, n848_0)), rt ∈ Ω(1 + n8480)
sqr(gen_s:0'5_0(n1178_0)) → gen_s:0'5_0(*(n1178_0, n1178_0)), rt ∈ Ω(1 + n11780 + n117802 + n117803)

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

No more defined symbols left to analyse.

(18) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n3) was proven with the following lemma:
sqr(gen_s:0'5_0(n1178_0)) → gen_s:0'5_0(*(n1178_0, n1178_0)), rt ∈ Ω(1 + n11780 + n117802 + n117803)

(19) BOUNDS(n^3, INF)

(20) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n848_0)) → gen_s:0'5_0(*(2, n848_0)), rt ∈ Ω(1 + n8480)
sqr(gen_s:0'5_0(n1178_0)) → gen_s:0'5_0(*(n1178_0, n1178_0)), rt ∈ Ω(1 + n11780 + n117802 + n117803)

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

No more defined symbols left to analyse.

(21) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n3) was proven with the following lemma:
sqr(gen_s:0'5_0(n1178_0)) → gen_s:0'5_0(*(n1178_0, n1178_0)), rt ∈ Ω(1 + n11780 + n117802 + n117803)

(22) BOUNDS(n^3, INF)

(23) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)
dbl(gen_s:0'5_0(n848_0)) → gen_s:0'5_0(*(2, n848_0)), rt ∈ Ω(1 + n8480)

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

No more defined symbols left to analyse.

(24) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)

(25) BOUNDS(n^1, INF)

(26) Obligation:

Innermost TRS:
Rules:
terms(N) → cons(recip(sqr(N)), n__terms(s(N)))
sqr(0') → 0'
sqr(s(X)) → s(add(sqr(X), dbl(X)))
dbl(0') → 0'
dbl(s(X)) → s(s(dbl(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
first(0', X) → nil
first(s(X), cons(Y, Z)) → cons(Y, n__first(X, activate(Z)))
terms(X) → n__terms(X)
first(X1, X2) → n__first(X1, X2)
activate(n__terms(X)) → terms(X)
activate(n__first(X1, X2)) → first(X1, X2)
activate(X) → X

Types:
terms :: s:0' → n__terms:cons:nil:n__first
cons :: recip → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
recip :: s:0' → recip
sqr :: s:0' → s:0'
n__terms :: s:0' → n__terms:cons:nil:n__first
s :: s:0' → s:0'
0' :: s:0'
add :: s:0' → s:0' → s:0'
dbl :: s:0' → s:0'
first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
nil :: n__terms:cons:nil:n__first
n__first :: s:0' → n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
activate :: n__terms:cons:nil:n__first → n__terms:cons:nil:n__first
hole_n__terms:cons:nil:n__first1_0 :: n__terms:cons:nil:n__first
hole_s:0'2_0 :: s:0'
hole_recip3_0 :: recip
gen_n__terms:cons:nil:n__first4_0 :: Nat → n__terms:cons:nil:n__first
gen_s:0'5_0 :: Nat → s:0'

Lemmas:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)

Generator Equations:
gen_n__terms:cons:nil:n__first4_0(0) ⇔ n__terms(0')
gen_n__terms:cons:nil:n__first4_0(+(x, 1)) ⇔ cons(recip(0'), gen_n__terms:cons:nil:n__first4_0(x))
gen_s:0'5_0(0) ⇔ 0'
gen_s:0'5_0(+(x, 1)) ⇔ s(gen_s:0'5_0(x))

No more defined symbols left to analyse.

(27) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
add(gen_s:0'5_0(n7_0), gen_s:0'5_0(b)) → gen_s:0'5_0(+(n7_0, b)), rt ∈ Ω(1 + n70)

(28) BOUNDS(n^1, INF)