(0) Obligation:

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

a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
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))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(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:

A__2ND(cons1(X, cons(Y, Z))) → MARK(Y)
A__2ND(cons(X, X1)) → A__2ND(cons1(mark(X), mark(X1)))
A__2ND(cons(X, X1)) → MARK(X)
A__2ND(cons(X, X1)) → MARK(X1)
A__FROM(X) → MARK(X)
MARK(2nd(X)) → A__2ND(mark(X))
MARK(2nd(X)) → MARK(X)
MARK(from(X)) → A__FROM(mark(X))
MARK(from(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
MARK(cons1(X1, X2)) → MARK(X1)
MARK(cons1(X1, X2)) → MARK(X2)

The TRS R consists of the following rules:

a__2nd(cons1(X, cons(Y, Z))) → mark(Y)
a__2nd(cons(X, X1)) → a__2nd(cons1(mark(X), mark(X1)))
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))
mark(cons1(X1, X2)) → cons1(mark(X1), mark(X2))
a__2nd(X) → 2nd(X)
a__from(X) → from(X)

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