### (0) Obligation:

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

a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Rewrite Strategy: FULL

### (1) DecreasingLoopProof (EQUIVALENT transformation)

The following loop(s) give(s) rise to the lower bound Ω(2n):
The rewrite sequence
mark(2nd(from(X2701_0))) →+ a__2nd(cons(mark(mark(X2701_0)), from(s(mark(X2701_0)))))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0,0,0].
The pumping substitution is [X2701_0 / 2nd(from(X2701_0))].
The result substitution is [ ].

The rewrite sequence
mark(2nd(from(X2701_0))) →+ a__2nd(cons(mark(mark(X2701_0)), from(s(mark(X2701_0)))))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0,1,0,0].
The pumping substitution is [X2701_0 / 2nd(from(X2701_0))].
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:

a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

S is empty.
Rewrite Strategy: FULL

Infered types.

### (6) Obligation:

TRS:
Rules:
a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:s:from:2nd → cons:s:from:2nd
cons :: cons:s:from:2nd → cons:s:from:2nd → cons:s:from:2nd
mark :: cons:s:from:2nd → cons:s:from:2nd
a__from :: cons:s:from:2nd → cons:s:from:2nd
from :: cons:s:from:2nd → cons:s:from:2nd
s :: cons:s:from:2nd → cons:s:from:2nd
2nd :: cons:s:from:2nd → cons:s:from:2nd
hole_cons:s:from:2nd1_0 :: cons:s:from:2nd
gen_cons:s:from:2nd2_0 :: Nat → cons:s:from:2nd

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

Heuristically decided to analyse the following defined symbols:
a__2nd, mark, a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

### (8) Obligation:

TRS:
Rules:
a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:s:from:2nd → cons:s:from:2nd
cons :: cons:s:from:2nd → cons:s:from:2nd → cons:s:from:2nd
mark :: cons:s:from:2nd → cons:s:from:2nd
a__from :: cons:s:from:2nd → cons:s:from:2nd
from :: cons:s:from:2nd → cons:s:from:2nd
s :: cons:s:from:2nd → cons:s:from:2nd
2nd :: cons:s:from:2nd → cons:s:from:2nd
hole_cons:s:from:2nd1_0 :: cons:s:from:2nd
gen_cons:s:from:2nd2_0 :: Nat → cons:s:from:2nd

Generator Equations:
gen_cons:s:from:2nd2_0(0) ⇔ hole_cons:s:from:2nd1_0
gen_cons:s:from:2nd2_0(+(x, 1)) ⇔ cons(gen_cons:s:from:2nd2_0(x), hole_cons:s:from:2nd1_0)

The following defined symbols remain to be analysed:
mark, a__2nd, a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

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

Proved the following rewrite lemma:
mark(gen_cons:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Induction Base:
mark(gen_cons:s:from:2nd2_0(+(1, 0)))

Induction Step:
mark(gen_cons:s:from:2nd2_0(+(1, +(n4_0, 1)))) →RΩ(1)
cons(mark(gen_cons:s:from:2nd2_0(+(1, n4_0))), hole_cons:s:from:2nd1_0) →IH
cons(*3_0, hole_cons:s:from:2nd1_0)

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

### (11) Obligation:

TRS:
Rules:
a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:s:from:2nd → cons:s:from:2nd
cons :: cons:s:from:2nd → cons:s:from:2nd → cons:s:from:2nd
mark :: cons:s:from:2nd → cons:s:from:2nd
a__from :: cons:s:from:2nd → cons:s:from:2nd
from :: cons:s:from:2nd → cons:s:from:2nd
s :: cons:s:from:2nd → cons:s:from:2nd
2nd :: cons:s:from:2nd → cons:s:from:2nd
hole_cons:s:from:2nd1_0 :: cons:s:from:2nd
gen_cons:s:from:2nd2_0 :: Nat → cons:s:from:2nd

Lemmas:
mark(gen_cons:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:s:from:2nd2_0(0) ⇔ hole_cons:s:from:2nd1_0
gen_cons:s:from:2nd2_0(+(x, 1)) ⇔ cons(gen_cons:s:from:2nd2_0(x), hole_cons:s:from:2nd1_0)

The following defined symbols remain to be analysed:
a__2nd, a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

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

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

### (13) Obligation:

TRS:
Rules:
a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:s:from:2nd → cons:s:from:2nd
cons :: cons:s:from:2nd → cons:s:from:2nd → cons:s:from:2nd
mark :: cons:s:from:2nd → cons:s:from:2nd
a__from :: cons:s:from:2nd → cons:s:from:2nd
from :: cons:s:from:2nd → cons:s:from:2nd
s :: cons:s:from:2nd → cons:s:from:2nd
2nd :: cons:s:from:2nd → cons:s:from:2nd
hole_cons:s:from:2nd1_0 :: cons:s:from:2nd
gen_cons:s:from:2nd2_0 :: Nat → cons:s:from:2nd

Lemmas:
mark(gen_cons:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:s:from:2nd2_0(0) ⇔ hole_cons:s:from:2nd1_0
gen_cons:s:from:2nd2_0(+(x, 1)) ⇔ cons(gen_cons:s:from:2nd2_0(x), hole_cons:s:from:2nd1_0)

The following defined symbols remain to be analysed:
a__from

They will be analysed ascendingly in the following order:
a__2nd = mark
a__2nd = a__from
mark = a__from

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

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

### (15) Obligation:

TRS:
Rules:
a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:s:from:2nd → cons:s:from:2nd
cons :: cons:s:from:2nd → cons:s:from:2nd → cons:s:from:2nd
mark :: cons:s:from:2nd → cons:s:from:2nd
a__from :: cons:s:from:2nd → cons:s:from:2nd
from :: cons:s:from:2nd → cons:s:from:2nd
s :: cons:s:from:2nd → cons:s:from:2nd
2nd :: cons:s:from:2nd → cons:s:from:2nd
hole_cons:s:from:2nd1_0 :: cons:s:from:2nd
gen_cons:s:from:2nd2_0 :: Nat → cons:s:from:2nd

Lemmas:
mark(gen_cons:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:s:from:2nd2_0(0) ⇔ hole_cons:s:from:2nd1_0
gen_cons:s:from:2nd2_0(+(x, 1)) ⇔ cons(gen_cons:s:from:2nd2_0(x), hole_cons:s:from:2nd1_0)

No more defined symbols left to analyse.

### (16) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
mark(gen_cons:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

### (18) Obligation:

TRS:
Rules:
a__2nd(cons(X, cons(Y, Z))) → mark(Y)
a__from(X) → cons(mark(X), from(s(X)))
mark(2nd(X)) → a__2nd(mark(X))
mark(from(X)) → a__from(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

Types:
a__2nd :: cons:s:from:2nd → cons:s:from:2nd
cons :: cons:s:from:2nd → cons:s:from:2nd → cons:s:from:2nd
mark :: cons:s:from:2nd → cons:s:from:2nd
a__from :: cons:s:from:2nd → cons:s:from:2nd
from :: cons:s:from:2nd → cons:s:from:2nd
s :: cons:s:from:2nd → cons:s:from:2nd
2nd :: cons:s:from:2nd → cons:s:from:2nd
hole_cons:s:from:2nd1_0 :: cons:s:from:2nd
gen_cons:s:from:2nd2_0 :: Nat → cons:s:from:2nd

Lemmas:
mark(gen_cons:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)

Generator Equations:
gen_cons:s:from:2nd2_0(0) ⇔ hole_cons:s:from:2nd1_0
gen_cons:s:from:2nd2_0(+(x, 1)) ⇔ cons(gen_cons:s:from:2nd2_0(x), hole_cons:s:from:2nd1_0)

No more defined symbols left to analyse.

### (19) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
mark(gen_cons:s:from:2nd2_0(+(1, n4_0))) → *3_0, rt ∈ Ω(n40)