Term Rewriting System R:
[X, XS, N, X1, X2]
from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

Termination of R to be shown.

`   R`
`     ↳Dependency Pair Analysis`

R contains the following Dependency Pairs:

2ND(cons(X, XS)) -> ACTIVATE(XS)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
SEL(s(N), cons(X, XS)) -> SEL(N, activate(XS))
SEL(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(nfrom(X)) -> FROM(activate(X))
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ACTIVATE(ns(X)) -> S(activate(X))
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(ntake(X1, X2)) -> TAKE(activate(X1), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)

Furthermore, R contains two SCCs.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, X2)) -> TAKE(activate(X1), activate(X2))
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(X1, X2)) -> TAKE(activate(X1), activate(X2))
eight new Dependency Pairs are created:

ACTIVATE(ntake(nfrom(X'), X2)) -> TAKE(from(activate(X')), activate(X2))
ACTIVATE(ntake(ns(X'), X2)) -> TAKE(s(activate(X')), activate(X2))
ACTIVATE(ntake(ntake(X1'', X2''), X2)) -> TAKE(take(activate(X1''), activate(X2'')), activate(X2))
ACTIVATE(ntake(X1', X2)) -> TAKE(X1', activate(X2))
ACTIVATE(ntake(X1, nfrom(X'))) -> TAKE(activate(X1), from(activate(X')))
ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X'))) -> TAKE(activate(X1), from(activate(X')))
ACTIVATE(ntake(X1', X2)) -> TAKE(X1', activate(X2))
ACTIVATE(ntake(ntake(X1'', X2''), X2)) -> TAKE(take(activate(X1''), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2)) -> TAKE(s(activate(X')), activate(X2))
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(nfrom(X'), X2)) -> TAKE(from(activate(X')), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(nfrom(X'), X2)) -> TAKE(from(activate(X')), activate(X2))
10 new Dependency Pairs are created:

ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(nfrom(activate(X'')), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 4`
`                 ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X'))) -> TAKE(activate(X1), from(activate(X')))
ACTIVATE(ntake(X1', X2)) -> TAKE(X1', activate(X2))
ACTIVATE(ntake(ntake(X1'', X2''), X2)) -> TAKE(take(activate(X1''), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2)) -> TAKE(s(activate(X')), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(ns(X'), X2)) -> TAKE(s(activate(X')), activate(X2))
nine new Dependency Pairs are created:

ACTIVATE(ntake(ns(X''), X2)) -> TAKE(ns(activate(X'')), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 5`
`                 ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X'))) -> TAKE(activate(X1), from(activate(X')))
ACTIVATE(ntake(X1', X2)) -> TAKE(X1', activate(X2))
ACTIVATE(ntake(ntake(X1'', X2''), X2)) -> TAKE(take(activate(X1''), activate(X2'')), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(ntake(X1'', X2''), X2)) -> TAKE(take(activate(X1''), activate(X2'')), activate(X2))
13 new Dependency Pairs are created:

ACTIVATE(ntake(ntake(X1''', X2'''), X2)) -> TAKE(ntake(activate(X1'''), activate(X2''')), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 6`
`                 ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X'))) -> TAKE(activate(X1), from(activate(X')))
ACTIVATE(ntake(X1', X2)) -> TAKE(X1', activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(X1', X2)) -> TAKE(X1', activate(X2))
four new Dependency Pairs are created:

ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 7`
`                 ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X'))) -> TAKE(activate(X1), from(activate(X')))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(X1, nfrom(X'))) -> TAKE(activate(X1), from(activate(X')))
10 new Dependency Pairs are created:

ACTIVATE(ntake(nfrom(X''), nfrom(X'))) -> TAKE(from(activate(X'')), from(activate(X')))
ACTIVATE(ntake(ns(X''), nfrom(X'))) -> TAKE(s(activate(X'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), nfrom(activate(X'')))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 8`
`                 ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(ns(X''), nfrom(X'))) -> TAKE(s(activate(X'')), from(activate(X')))
ACTIVATE(ntake(nfrom(X''), nfrom(X'))) -> TAKE(from(activate(X'')), from(activate(X')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(X1, ns(X'))) -> TAKE(activate(X1), s(activate(X')))
nine new Dependency Pairs are created:

ACTIVATE(ntake(nfrom(X''), ns(X'))) -> TAKE(from(activate(X'')), s(activate(X')))
ACTIVATE(ntake(ns(X''), ns(X'))) -> TAKE(s(activate(X'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), ns(X'))) -> TAKE(take(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), ns(activate(X'')))
ACTIVATE(ntake(X1, ns(nfrom(X'')))) -> TAKE(activate(X1), s(from(activate(X''))))
ACTIVATE(ntake(X1, ns(ns(X'')))) -> TAKE(activate(X1), s(s(activate(X''))))
ACTIVATE(ntake(X1, ns(ntake(X1'', X2')))) -> TAKE(activate(X1), s(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), s(X''))

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 9`
`                 ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), s(X''))
ACTIVATE(ntake(X1, ns(ntake(X1'', X2')))) -> TAKE(activate(X1), s(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, ns(ns(X'')))) -> TAKE(activate(X1), s(s(activate(X''))))
ACTIVATE(ntake(X1, ns(nfrom(X'')))) -> TAKE(activate(X1), s(from(activate(X''))))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), ns(X'))) -> TAKE(take(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(ntake(ns(X''), ns(X'))) -> TAKE(s(activate(X'')), s(activate(X')))
ACTIVATE(ntake(nfrom(X''), ns(X'))) -> TAKE(from(activate(X'')), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(ns(X''), nfrom(X'))) -> TAKE(s(activate(X'')), from(activate(X')))
ACTIVATE(ntake(nfrom(X''), nfrom(X'))) -> TAKE(from(activate(X'')), from(activate(X')))
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(X1, ntake(X1'', X2''))) -> TAKE(activate(X1), take(activate(X1''), activate(X2'')))
13 new Dependency Pairs are created:

ACTIVATE(ntake(nfrom(X'), ntake(X1'', X2''))) -> TAKE(from(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ns(X'), ntake(X1'', X2''))) -> TAKE(s(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ntake(X1''', X2'), ntake(X1'', X2''))) -> TAKE(take(activate(X1'''), activate(X2')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ntake(X1''', X2'''))) -> TAKE(activate(X1), ntake(activate(X1'''), activate(X2''')))
ACTIVATE(ntake(X1, ntake(nfrom(X'), X2''))) -> TAKE(activate(X1), take(from(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(ns(X'), X2''))) -> TAKE(activate(X1), take(s(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(ntake(X1''', X2'), X2''))) -> TAKE(activate(X1), take(take(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(X1''', X2''))) -> TAKE(activate(X1), take(X1''', activate(X2'')))
ACTIVATE(ntake(X1, ntake(X1'', nfrom(X')))) -> TAKE(activate(X1), take(activate(X1''), from(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1'', ns(X')))) -> TAKE(activate(X1), take(activate(X1''), s(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1'', ntake(X1''', X2')))) -> TAKE(activate(X1), take(activate(X1''), take(activate(X1'''), activate(X2'))))
ACTIVATE(ntake(X1, ntake(X1'', X2'''))) -> TAKE(activate(X1), take(activate(X1''), X2'''))

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 10`
`                 ↳Narrowing Transformation`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1, ntake(X1'', X2'''))) -> TAKE(activate(X1), take(activate(X1''), X2'''))
ACTIVATE(ntake(X1, ntake(X1'', ntake(X1''', X2')))) -> TAKE(activate(X1), take(activate(X1''), take(activate(X1'''), activate(X2'))))
ACTIVATE(ntake(X1, ntake(X1'', ns(X')))) -> TAKE(activate(X1), take(activate(X1''), s(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1'', nfrom(X')))) -> TAKE(activate(X1), take(activate(X1''), from(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1''', X2''))) -> TAKE(activate(X1), take(X1''', activate(X2'')))
ACTIVATE(ntake(X1, ntake(ntake(X1''', X2'), X2''))) -> TAKE(activate(X1), take(take(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(ns(X'), X2''))) -> TAKE(activate(X1), take(s(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(nfrom(X'), X2''))) -> TAKE(activate(X1), take(from(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ntake(X1''', X2'), ntake(X1'', X2''))) -> TAKE(take(activate(X1'''), activate(X2')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ns(X'), ntake(X1'', X2''))) -> TAKE(s(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ntake(X1'', X2''))) -> TAKE(from(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(ntake(X1'', X2')))) -> TAKE(activate(X1), s(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, ns(ns(X'')))) -> TAKE(activate(X1), s(s(activate(X''))))
ACTIVATE(ntake(X1, ns(nfrom(X'')))) -> TAKE(activate(X1), s(from(activate(X''))))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), ns(X'))) -> TAKE(take(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(ntake(ns(X''), ns(X'))) -> TAKE(s(activate(X'')), s(activate(X')))
ACTIVATE(ntake(nfrom(X''), ns(X'))) -> TAKE(from(activate(X'')), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(ns(X''), nfrom(X'))) -> TAKE(s(activate(X'')), from(activate(X')))
ACTIVATE(ntake(nfrom(X''), nfrom(X'))) -> TAKE(from(activate(X'')), from(activate(X')))
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), s(X''))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

ACTIVATE(ntake(X1, X2')) -> TAKE(activate(X1), X2')
four new Dependency Pairs are created:

ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 11`
`                 ↳Polynomial Ordering`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(X1, ntake(X1'', ntake(X1''', X2')))) -> TAKE(activate(X1), take(activate(X1''), take(activate(X1'''), activate(X2'))))
ACTIVATE(ntake(X1, ntake(X1'', ns(X')))) -> TAKE(activate(X1), take(activate(X1''), s(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1'', nfrom(X')))) -> TAKE(activate(X1), take(activate(X1''), from(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1''', X2''))) -> TAKE(activate(X1), take(X1''', activate(X2'')))
ACTIVATE(ntake(X1, ntake(ntake(X1''', X2'), X2''))) -> TAKE(activate(X1), take(take(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(ns(X'), X2''))) -> TAKE(activate(X1), take(s(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(nfrom(X'), X2''))) -> TAKE(activate(X1), take(from(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ntake(X1''', X2'), ntake(X1'', X2''))) -> TAKE(take(activate(X1'''), activate(X2')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ns(X'), ntake(X1'', X2''))) -> TAKE(s(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ntake(X1'', X2''))) -> TAKE(from(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), s(X''))
ACTIVATE(ntake(X1, ns(ntake(X1'', X2')))) -> TAKE(activate(X1), s(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, ns(ns(X'')))) -> TAKE(activate(X1), s(s(activate(X''))))
ACTIVATE(ntake(X1, ns(nfrom(X'')))) -> TAKE(activate(X1), s(from(activate(X''))))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), ns(X'))) -> TAKE(take(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(ntake(ns(X''), ns(X'))) -> TAKE(s(activate(X'')), s(activate(X')))
ACTIVATE(ntake(nfrom(X''), ns(X'))) -> TAKE(from(activate(X'')), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(ns(X''), nfrom(X'))) -> TAKE(s(activate(X'')), from(activate(X')))
ACTIVATE(ntake(nfrom(X''), nfrom(X'))) -> TAKE(from(activate(X'')), from(activate(X')))
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, ntake(X1'', X2'''))) -> TAKE(activate(X1), take(activate(X1''), X2'''))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

The following dependency pairs can be strictly oriented:

ACTIVATE(ntake(nfrom(X'), X2')) -> TAKE(from(activate(X')), X2')
ACTIVATE(ntake(nfrom(X'), ntake(X1'', X2''))) -> TAKE(from(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(nfrom(X''), ns(X'))) -> TAKE(from(activate(X'')), s(activate(X')))
ACTIVATE(ntake(nfrom(X''), nfrom(X'))) -> TAKE(from(activate(X'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', nfrom(X')), X2)) -> TAKE(take(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(nfrom(X'), X2''), X2)) -> TAKE(take(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(nfrom(X'')), X2)) -> TAKE(s(from(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(X'), ntake(X1', X2''))) -> TAKE(from(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(nfrom(X'), ns(X''))) -> TAKE(from(activate(X')), s(activate(X'')))
ACTIVATE(ntake(nfrom(X'), nfrom(X''))) -> TAKE(from(activate(X')), from(activate(X'')))
ACTIVATE(ntake(nfrom(X''), X2)) -> TAKE(from(X''), activate(X2))
ACTIVATE(ntake(nfrom(ntake(X1', X2'')), X2)) -> TAKE(from(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(nfrom(ns(X'')), X2)) -> TAKE(from(s(activate(X''))), activate(X2))
ACTIVATE(ntake(nfrom(nfrom(X'')), X2)) -> TAKE(from(from(activate(X''))), activate(X2))
ACTIVATE(nfrom(X)) -> ACTIVATE(X)

Additionally, the following usable rules w.r.t. to the implicit AFS can be oriented:

activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
s(X) -> ns(X)
from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)

Used ordering: Polynomial ordering with Polynomial interpretation:
 POL(n__from(x1)) =  1 + x1 POL(from(x1)) =  1 + x1 POL(activate(x1)) =  x1 POL(0) =  0 POL(n__take(x1, x2)) =  x1 + x2 POL(cons(x1, x2)) =  x2 POL(take(x1, x2)) =  x1 + x2 POL(TAKE(x1, x2)) =  x2 POL(n__s(x1)) =  x1 POL(nil) =  0 POL(s(x1)) =  x1 POL(ACTIVATE(x1)) =  x1

resulting in one new DP problem.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 12`
`                 ↳Polynomial Ordering`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(X1, ntake(X1'', ntake(X1''', X2')))) -> TAKE(activate(X1), take(activate(X1''), take(activate(X1'''), activate(X2'))))
ACTIVATE(ntake(X1, ntake(X1'', ns(X')))) -> TAKE(activate(X1), take(activate(X1''), s(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1'', nfrom(X')))) -> TAKE(activate(X1), take(activate(X1''), from(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1''', X2''))) -> TAKE(activate(X1), take(X1''', activate(X2'')))
ACTIVATE(ntake(X1, ntake(ntake(X1''', X2'), X2''))) -> TAKE(activate(X1), take(take(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(ns(X'), X2''))) -> TAKE(activate(X1), take(s(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(nfrom(X'), X2''))) -> TAKE(activate(X1), take(from(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ntake(X1''', X2'), ntake(X1'', X2''))) -> TAKE(take(activate(X1'''), activate(X2')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ns(X'), ntake(X1'', X2''))) -> TAKE(s(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), s(X''))
ACTIVATE(ntake(X1, ns(ntake(X1'', X2')))) -> TAKE(activate(X1), s(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, ns(ns(X'')))) -> TAKE(activate(X1), s(s(activate(X''))))
ACTIVATE(ntake(X1, ns(nfrom(X'')))) -> TAKE(activate(X1), s(from(activate(X''))))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), ns(X'))) -> TAKE(take(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(ntake(ns(X''), ns(X'))) -> TAKE(s(activate(X'')), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(ns(X''), nfrom(X'))) -> TAKE(s(activate(X'')), from(activate(X')))
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, ntake(X1'', X2'''))) -> TAKE(activate(X1), take(activate(X1''), X2'''))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

The following dependency pairs can be strictly oriented:

ACTIVATE(ntake(ns(X'), X2')) -> TAKE(s(activate(X')), X2')
ACTIVATE(ntake(ns(X'), ntake(X1'', X2''))) -> TAKE(s(activate(X')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ns(X''), ns(X'))) -> TAKE(s(activate(X'')), s(activate(X')))
ACTIVATE(ntake(ns(X''), nfrom(X'))) -> TAKE(s(activate(X'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', ns(X')), X2)) -> TAKE(take(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(ntake(ntake(ns(X'), X2''), X2)) -> TAKE(take(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(ntake(ns(X'), ntake(X1', X2''))) -> TAKE(s(activate(X')), take(activate(X1'), activate(X2'')))
ACTIVATE(ntake(ns(X'), ns(X''))) -> TAKE(s(activate(X')), s(activate(X'')))
ACTIVATE(ntake(ns(X'), nfrom(X''))) -> TAKE(s(activate(X')), from(activate(X'')))
ACTIVATE(ntake(ns(X''), X2)) -> TAKE(s(X''), activate(X2))
ACTIVATE(ntake(ns(ntake(X1', X2'')), X2)) -> TAKE(s(take(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(ntake(ns(ns(X'')), X2)) -> TAKE(s(s(activate(X''))), activate(X2))
ACTIVATE(ns(X)) -> ACTIVATE(X)

Additionally, the following usable rules w.r.t. to the implicit AFS can be oriented:

activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
s(X) -> ns(X)
from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)

Used ordering: Polynomial ordering with Polynomial interpretation:
 POL(n__from(x1)) =  0 POL(from(x1)) =  0 POL(activate(x1)) =  x1 POL(0) =  0 POL(n__take(x1, x2)) =  x1 + x2 POL(cons(x1, x2)) =  x2 POL(take(x1, x2)) =  x1 + x2 POL(TAKE(x1, x2)) =  x2 POL(n__s(x1)) =  1 + x1 POL(nil) =  0 POL(s(x1)) =  1 + x1 POL(ACTIVATE(x1)) =  x1

resulting in one new DP problem.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 13`
`                 ↳Polynomial Ordering`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pairs:

ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(X1, ntake(X1'', ntake(X1''', X2')))) -> TAKE(activate(X1), take(activate(X1''), take(activate(X1'''), activate(X2'))))
ACTIVATE(ntake(X1, ntake(X1'', ns(X')))) -> TAKE(activate(X1), take(activate(X1''), s(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1'', nfrom(X')))) -> TAKE(activate(X1), take(activate(X1''), from(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1''', X2''))) -> TAKE(activate(X1), take(X1''', activate(X2'')))
ACTIVATE(ntake(X1, ntake(ntake(X1''', X2'), X2''))) -> TAKE(activate(X1), take(take(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(ns(X'), X2''))) -> TAKE(activate(X1), take(s(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(nfrom(X'), X2''))) -> TAKE(activate(X1), take(from(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ntake(X1''', X2'), ntake(X1'', X2''))) -> TAKE(take(activate(X1'''), activate(X2')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), s(X''))
ACTIVATE(ntake(X1, ns(ntake(X1'', X2')))) -> TAKE(activate(X1), s(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, ns(ns(X'')))) -> TAKE(activate(X1), s(s(activate(X''))))
ACTIVATE(ntake(X1, ns(nfrom(X'')))) -> TAKE(activate(X1), s(from(activate(X''))))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), ns(X'))) -> TAKE(take(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, ntake(X1'', X2'''))) -> TAKE(activate(X1), take(activate(X1''), X2'''))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

The following dependency pairs can be strictly oriented:

ACTIVATE(ntake(X1', X2')) -> TAKE(X1', X2')
ACTIVATE(ntake(ntake(X1'', X2''), X2')) -> TAKE(take(activate(X1''), activate(X2'')), X2')
ACTIVATE(ntake(X1, ntake(X1'', ntake(X1''', X2')))) -> TAKE(activate(X1), take(activate(X1''), take(activate(X1'''), activate(X2'))))
ACTIVATE(ntake(X1, ntake(X1'', ns(X')))) -> TAKE(activate(X1), take(activate(X1''), s(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1'', nfrom(X')))) -> TAKE(activate(X1), take(activate(X1''), from(activate(X'))))
ACTIVATE(ntake(X1, ntake(X1''', X2''))) -> TAKE(activate(X1), take(X1''', activate(X2'')))
ACTIVATE(ntake(X1, ntake(ntake(X1''', X2'), X2''))) -> TAKE(activate(X1), take(take(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(ns(X'), X2''))) -> TAKE(activate(X1), take(s(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1, ntake(nfrom(X'), X2''))) -> TAKE(activate(X1), take(from(activate(X')), activate(X2'')))
ACTIVATE(ntake(X1', ntake(X1'', X2''))) -> TAKE(X1', take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(ntake(X1''', X2'), ntake(X1'', X2''))) -> TAKE(take(activate(X1'''), activate(X2')), take(activate(X1''), activate(X2'')))
ACTIVATE(ntake(X1, ns(X''))) -> TAKE(activate(X1), s(X''))
ACTIVATE(ntake(X1, ns(ntake(X1'', X2')))) -> TAKE(activate(X1), s(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, ns(ns(X'')))) -> TAKE(activate(X1), s(s(activate(X''))))
ACTIVATE(ntake(X1, ns(nfrom(X'')))) -> TAKE(activate(X1), s(from(activate(X''))))
ACTIVATE(ntake(X1', ns(X'))) -> TAKE(X1', s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), ns(X'))) -> TAKE(take(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), from(X''))
ACTIVATE(ntake(X1, nfrom(ntake(X1'', X2')))) -> TAKE(activate(X1), from(take(activate(X1''), activate(X2'))))
ACTIVATE(ntake(X1, nfrom(ns(X'')))) -> TAKE(activate(X1), from(s(activate(X''))))
ACTIVATE(ntake(X1, nfrom(nfrom(X'')))) -> TAKE(activate(X1), from(from(activate(X''))))
ACTIVATE(ntake(X1, nfrom(X''))) -> TAKE(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(ntake(X1', nfrom(X'))) -> TAKE(X1', from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), ntake(X1', X2'''))) -> TAKE(take(activate(X1''), activate(X2'')), take(activate(X1'), activate(X2''')))
ACTIVATE(ntake(ntake(X1'', X2''), ns(X'))) -> TAKE(take(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2''), nfrom(X'))) -> TAKE(take(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(ntake(ntake(X1'', X2'''), X2)) -> TAKE(take(activate(X1''), X2'''), activate(X2))
ACTIVATE(ntake(ntake(X1'', ntake(X1', X2''')), X2)) -> TAKE(take(activate(X1''), take(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(ntake(ntake(X1''', X2''), X2)) -> TAKE(take(X1''', activate(X2'')), activate(X2))
ACTIVATE(ntake(ntake(ntake(X1', X2'''), X2''), X2)) -> TAKE(take(take(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(ntake(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ntake(X1, ntake(X1'', X2'''))) -> TAKE(activate(X1), take(activate(X1''), X2'''))

Additionally, the following usable rules w.r.t. to the implicit AFS can be oriented:

activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
s(X) -> ns(X)
from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)

Used ordering: Polynomial ordering with Polynomial interpretation:
 POL(n__from(x1)) =  0 POL(from(x1)) =  0 POL(activate(x1)) =  x1 POL(0) =  0 POL(n__take(x1, x2)) =  1 + x1 + x2 POL(cons(x1, x2)) =  x2 POL(take(x1, x2)) =  1 + x1 + x2 POL(TAKE(x1, x2)) =  x2 POL(n__s(x1)) =  x1 POL(nil) =  0 POL(s(x1)) =  x1 POL(ACTIVATE(x1)) =  x1

resulting in one new DP problem.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`           →DP Problem 3`
`             ↳Nar`
`             ...`
`               →DP Problem 14`
`                 ↳Dependency Graph`
`       →DP Problem 2`
`         ↳Nar`

Dependency Pair:

TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

Using the Dependency Graph resulted in no new DP problems.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`       →DP Problem 2`
`         ↳Narrowing Transformation`

Dependency Pair:

SEL(s(N), cons(X, XS)) -> SEL(N, activate(XS))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

SEL(s(N), cons(X, XS)) -> SEL(N, activate(XS))
four new Dependency Pairs are created:

SEL(s(N), cons(X, nfrom(X''))) -> SEL(N, from(activate(X'')))
SEL(s(N), cons(X, ns(X''))) -> SEL(N, s(activate(X'')))
SEL(s(N), cons(X, ntake(X1', X2'))) -> SEL(N, take(activate(X1'), activate(X2')))
SEL(s(N), cons(X, XS')) -> SEL(N, XS')

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`       →DP Problem 2`
`         ↳Nar`
`           →DP Problem 15`
`             ↳Narrowing Transformation`

Dependency Pairs:

SEL(s(N), cons(X, XS')) -> SEL(N, XS')
SEL(s(N), cons(X, ntake(X1', X2'))) -> SEL(N, take(activate(X1'), activate(X2')))
SEL(s(N), cons(X, ns(X''))) -> SEL(N, s(activate(X'')))
SEL(s(N), cons(X, nfrom(X''))) -> SEL(N, from(activate(X'')))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

SEL(s(N), cons(X, nfrom(X''))) -> SEL(N, from(activate(X'')))
six new Dependency Pairs are created:

SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, cons(activate(X'''), nfrom(ns(activate(X''')))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, nfrom(activate(X''')))
SEL(s(N), cons(X, nfrom(nfrom(X''')))) -> SEL(N, from(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(ns(X''')))) -> SEL(N, from(s(activate(X'''))))
SEL(s(N), cons(X, nfrom(ntake(X1', X2')))) -> SEL(N, from(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, from(X'''))

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`       →DP Problem 2`
`         ↳Nar`
`           →DP Problem 15`
`             ↳Nar`
`             ...`
`               →DP Problem 16`
`                 ↳Narrowing Transformation`

Dependency Pairs:

SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, from(X'''))
SEL(s(N), cons(X, nfrom(ntake(X1', X2')))) -> SEL(N, from(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, nfrom(nfrom(X''')))) -> SEL(N, from(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(ns(X''')))) -> SEL(N, from(s(activate(X'''))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, cons(activate(X'''), nfrom(ns(activate(X''')))))
SEL(s(N), cons(X, ntake(X1', X2'))) -> SEL(N, take(activate(X1'), activate(X2')))
SEL(s(N), cons(X, ns(X''))) -> SEL(N, s(activate(X'')))
SEL(s(N), cons(X, XS')) -> SEL(N, XS')

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

SEL(s(N), cons(X, ns(X''))) -> SEL(N, s(activate(X'')))
five new Dependency Pairs are created:

SEL(s(N), cons(X, ns(X'''))) -> SEL(N, ns(activate(X''')))
SEL(s(N), cons(X, ns(nfrom(X''')))) -> SEL(N, s(from(activate(X'''))))
SEL(s(N), cons(X, ns(ns(X''')))) -> SEL(N, s(s(activate(X'''))))
SEL(s(N), cons(X, ns(ntake(X1', X2')))) -> SEL(N, s(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, ns(X'''))) -> SEL(N, s(X'''))

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`       →DP Problem 2`
`         ↳Nar`
`           →DP Problem 15`
`             ↳Nar`
`             ...`
`               →DP Problem 17`
`                 ↳Narrowing Transformation`

Dependency Pairs:

SEL(s(N), cons(X, ns(X'''))) -> SEL(N, s(X'''))
SEL(s(N), cons(X, ns(ntake(X1', X2')))) -> SEL(N, s(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, ns(ns(X''')))) -> SEL(N, s(s(activate(X'''))))
SEL(s(N), cons(X, ns(nfrom(X''')))) -> SEL(N, s(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(ntake(X1', X2')))) -> SEL(N, from(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, nfrom(nfrom(X''')))) -> SEL(N, from(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(ns(X''')))) -> SEL(N, from(s(activate(X'''))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, cons(activate(X'''), nfrom(ns(activate(X''')))))
SEL(s(N), cons(X, XS')) -> SEL(N, XS')
SEL(s(N), cons(X, ntake(X1', X2'))) -> SEL(N, take(activate(X1'), activate(X2')))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, from(X'''))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

On this DP problem, a Narrowing SCC transformation can be performed.
As a result of transforming the rule

SEL(s(N), cons(X, ntake(X1', X2'))) -> SEL(N, take(activate(X1'), activate(X2')))
nine new Dependency Pairs are created:

SEL(s(N), cons(X, ntake(X1'', X2''))) -> SEL(N, ntake(activate(X1''), activate(X2'')))
SEL(s(N), cons(X, ntake(nfrom(X''), X2'))) -> SEL(N, take(from(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ntake(ns(X''), X2'))) -> SEL(N, take(s(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ntake(ntake(X1'', X2''), X2'))) -> SEL(N, take(take(activate(X1''), activate(X2'')), activate(X2')))
SEL(s(N), cons(X, ntake(X1'', X2'))) -> SEL(N, take(X1'', activate(X2')))
SEL(s(N), cons(X, ntake(X1', nfrom(X'')))) -> SEL(N, take(activate(X1'), from(activate(X''))))
SEL(s(N), cons(X, ntake(X1', ns(X'')))) -> SEL(N, take(activate(X1'), s(activate(X''))))
SEL(s(N), cons(X, ntake(X1', ntake(X1'', X2'')))) -> SEL(N, take(activate(X1'), take(activate(X1''), activate(X2''))))
SEL(s(N), cons(X, ntake(X1', X2''))) -> SEL(N, take(activate(X1'), X2''))

The transformation is resulting in one new DP problem:

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`       →DP Problem 2`
`         ↳Nar`
`           →DP Problem 15`
`             ↳Nar`
`             ...`
`               →DP Problem 18`
`                 ↳Polynomial Ordering`

Dependency Pairs:

SEL(s(N), cons(X, ntake(X1', X2''))) -> SEL(N, take(activate(X1'), X2''))
SEL(s(N), cons(X, ntake(X1', ntake(X1'', X2'')))) -> SEL(N, take(activate(X1'), take(activate(X1''), activate(X2''))))
SEL(s(N), cons(X, ntake(X1', ns(X'')))) -> SEL(N, take(activate(X1'), s(activate(X''))))
SEL(s(N), cons(X, ntake(X1', nfrom(X'')))) -> SEL(N, take(activate(X1'), from(activate(X''))))
SEL(s(N), cons(X, ntake(X1'', X2'))) -> SEL(N, take(X1'', activate(X2')))
SEL(s(N), cons(X, ntake(ntake(X1'', X2''), X2'))) -> SEL(N, take(take(activate(X1''), activate(X2'')), activate(X2')))
SEL(s(N), cons(X, ntake(ns(X''), X2'))) -> SEL(N, take(s(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ntake(nfrom(X''), X2'))) -> SEL(N, take(from(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ns(ntake(X1', X2')))) -> SEL(N, s(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, ns(ns(X''')))) -> SEL(N, s(s(activate(X'''))))
SEL(s(N), cons(X, ns(nfrom(X''')))) -> SEL(N, s(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, from(X'''))
SEL(s(N), cons(X, nfrom(ntake(X1', X2')))) -> SEL(N, from(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, nfrom(nfrom(X''')))) -> SEL(N, from(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(ns(X''')))) -> SEL(N, from(s(activate(X'''))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, cons(activate(X'''), nfrom(ns(activate(X''')))))
SEL(s(N), cons(X, XS')) -> SEL(N, XS')
SEL(s(N), cons(X, ns(X'''))) -> SEL(N, s(X'''))

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

The following dependency pairs can be strictly oriented:

SEL(s(N), cons(X, ntake(X1', X2''))) -> SEL(N, take(activate(X1'), X2''))
SEL(s(N), cons(X, ntake(X1', ntake(X1'', X2'')))) -> SEL(N, take(activate(X1'), take(activate(X1''), activate(X2''))))
SEL(s(N), cons(X, ntake(X1', ns(X'')))) -> SEL(N, take(activate(X1'), s(activate(X''))))
SEL(s(N), cons(X, ntake(X1', nfrom(X'')))) -> SEL(N, take(activate(X1'), from(activate(X''))))
SEL(s(N), cons(X, ntake(X1'', X2'))) -> SEL(N, take(X1'', activate(X2')))
SEL(s(N), cons(X, ntake(ntake(X1'', X2''), X2'))) -> SEL(N, take(take(activate(X1''), activate(X2'')), activate(X2')))
SEL(s(N), cons(X, ntake(ns(X''), X2'))) -> SEL(N, take(s(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ntake(nfrom(X''), X2'))) -> SEL(N, take(from(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ns(ntake(X1', X2')))) -> SEL(N, s(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, ns(ns(X''')))) -> SEL(N, s(s(activate(X'''))))
SEL(s(N), cons(X, ns(nfrom(X''')))) -> SEL(N, s(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, from(X'''))
SEL(s(N), cons(X, nfrom(ntake(X1', X2')))) -> SEL(N, from(take(activate(X1'), activate(X2'))))
SEL(s(N), cons(X, nfrom(nfrom(X''')))) -> SEL(N, from(from(activate(X'''))))
SEL(s(N), cons(X, nfrom(ns(X''')))) -> SEL(N, from(s(activate(X'''))))
SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, cons(activate(X'''), nfrom(ns(activate(X''')))))
SEL(s(N), cons(X, XS')) -> SEL(N, XS')
SEL(s(N), cons(X, ns(X'''))) -> SEL(N, s(X'''))

There are no usable rules w.r.t. to the implicit AFS that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
 POL(n__from(x1)) =  0 POL(from(x1)) =  0 POL(activate(x1)) =  0 POL(0) =  0 POL(n__take(x1, x2)) =  0 POL(cons(x1, x2)) =  0 POL(SEL(x1, x2)) =  x1 POL(take(x1, x2)) =  0 POL(n__s(x1)) =  0 POL(nil) =  0 POL(s(x1)) =  1 + x1

resulting in one new DP problem.

`   R`
`     ↳DPs`
`       →DP Problem 1`
`         ↳Nar`
`       →DP Problem 2`
`         ↳Nar`
`           →DP Problem 15`
`             ↳Nar`
`             ...`
`               →DP Problem 19`
`                 ↳Dependency Graph`

Dependency Pair:

Rules:

from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(ntake(X1, X2)) -> take(activate(X1), activate(X2))
activate(X) -> X

Using the Dependency Graph resulted in no new DP problems.

Termination of R successfully shown.
Duration:
0:24 minutes