Term Rewriting System R:
[X, XS, N, Y, YS, X1, X2]
from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

SEL(s(N), cons(X, XS)) -> SEL(N, activate(XS))
SEL(s(N), cons(X, XS)) -> ACTIVATE(XS)
MINUS(s(X), s(Y)) -> MINUS(X, Y)
QUOT(s(X), s(Y)) -> S(quot(minus(X, Y), s(Y)))
QUOT(s(X), s(Y)) -> QUOT(minus(X, Y), s(Y))
QUOT(s(X), s(Y)) -> MINUS(X, Y)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> QUOT(X, Y)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nfrom(X)) -> FROM(activate(X))
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ACTIVATE(ns(X)) -> S(activate(X))
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nzWquot(X1, X2)) -> ZWQUOT(activate(X1), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)

Furthermore, R contains four SCCs.


   R
DPs
       →DP Problem 1
Polynomial Ordering
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
Nar


Dependency Pair:

MINUS(s(X), s(Y)) -> MINUS(X, Y)


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





The following dependency pair can be strictly oriented:

MINUS(s(X), s(Y)) -> MINUS(X, Y)


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(MINUS(x1, x2))=  x1  
  POL(s(x1))=  1 + x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 5
Dependency Graph
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
Nar


Dependency Pair:


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polynomial Ordering
       →DP Problem 3
Nar
       →DP Problem 4
Nar


Dependency Pair:

QUOT(s(X), s(Y)) -> QUOT(minus(X, Y), s(Y))


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





The following dependency pair can be strictly oriented:

QUOT(s(X), s(Y)) -> QUOT(minus(X, Y), s(Y))


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

minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(QUOT(x1, x2))=  x1  
  POL(0)=  0  
  POL(minus(x1, x2))=  0  
  POL(n__s(x1))=  0  
  POL(s(x1))=  1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
           →DP Problem 6
Dependency Graph
       →DP Problem 3
Nar
       →DP Problem 4
Nar


Dependency Pair:


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1, X2)) -> ZWQUOT(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)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1, X2)) -> ZWQUOT(activate(X1), activate(X2))
eight new Dependency Pairs are created:

ACTIVATE(nzWquot(nfrom(X'), X2)) -> ZWQUOT(from(activate(X')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2)) -> ZWQUOT(s(activate(X')), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2)) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(X1', X2)) -> ZWQUOT(X1', activate(X2))
ACTIVATE(nzWquot(X1, nfrom(X'))) -> ZWQUOT(activate(X1), from(activate(X')))
ACTIVATE(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X'))) -> ZWQUOT(activate(X1), from(activate(X')))
ACTIVATE(nzWquot(X1', X2)) -> ZWQUOT(X1', activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2)) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2)) -> ZWQUOT(s(activate(X')), activate(X2))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(nfrom(X'), X2)) -> ZWQUOT(from(activate(X')), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(nfrom(X'), X2)) -> ZWQUOT(from(activate(X')), activate(X2))
10 new Dependency Pairs are created:

ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(nfrom(activate(X'')), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 8
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X'))) -> ZWQUOT(activate(X1), from(activate(X')))
ACTIVATE(nzWquot(X1', X2)) -> ZWQUOT(X1', activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2)) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), activate(X2))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(ns(X'), X2)) -> ZWQUOT(s(activate(X')), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(ns(X'), X2)) -> ZWQUOT(s(activate(X')), activate(X2))
nine new Dependency Pairs are created:

ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(ns(activate(X'')), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 9
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X'))) -> ZWQUOT(activate(X1), from(activate(X')))
ACTIVATE(nzWquot(X1', X2)) -> ZWQUOT(X1', activate(X2))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2)) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(nzWquot(X1'', X2''), X2)) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), activate(X2))
13 new Dependency Pairs are created:

ACTIVATE(nzWquot(nzWquot(X1''', X2'''), X2)) -> ZWQUOT(nzWquot(activate(X1'''), activate(X2''')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 10
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X'))) -> ZWQUOT(activate(X1), from(activate(X')))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(X1', X2)) -> ZWQUOT(X1', activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1', X2)) -> ZWQUOT(X1', activate(X2))
four new Dependency Pairs are created:

ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 11
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(X1, nfrom(X'))) -> ZWQUOT(activate(X1), from(activate(X')))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1, nfrom(X'))) -> ZWQUOT(activate(X1), from(activate(X')))
10 new Dependency Pairs are created:

ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), nfrom(activate(X'')))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 12
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1, ns(X'))) -> ZWQUOT(activate(X1), s(activate(X')))
nine new Dependency Pairs are created:

ACTIVATE(nzWquot(nfrom(X''), ns(X'))) -> ZWQUOT(from(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(ns(X''), ns(X'))) -> ZWQUOT(s(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), ns(activate(X'')))
ACTIVATE(nzWquot(X1, ns(nfrom(X'')))) -> ZWQUOT(activate(X1), s(from(activate(X''))))
ACTIVATE(nzWquot(X1, ns(ns(X'')))) -> ZWQUOT(activate(X1), s(s(activate(X''))))
ACTIVATE(nzWquot(X1, ns(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), s(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), s(X''))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 13
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), s(X''))
ACTIVATE(nzWquot(X1, ns(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), s(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, ns(ns(X'')))) -> ZWQUOT(activate(X1), s(s(activate(X''))))
ACTIVATE(nzWquot(X1, ns(nfrom(X'')))) -> ZWQUOT(activate(X1), s(from(activate(X''))))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(nzWquot(ns(X''), ns(X'))) -> ZWQUOT(s(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), ns(X'))) -> ZWQUOT(from(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1, nzWquot(X1'', X2''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), activate(X2'')))
13 new Dependency Pairs are created:

ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1'', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1'', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nzWquot(X1''', X2'), nzWquot(X1'', X2''))) -> ZWQUOT(zWquot(activate(X1'''), activate(X2')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(X1''', X2'''))) -> ZWQUOT(activate(X1), nzWquot(activate(X1'''), activate(X2''')))
ACTIVATE(nzWquot(X1, nzWquot(nfrom(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(from(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(ns(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(s(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nzWquot(X1''', X2'), X2''))) -> ZWQUOT(activate(X1), zWquot(zWquot(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(X1''', X2''))) -> ZWQUOT(activate(X1), zWquot(X1''', activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nfrom(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), from(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', ns(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), s(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nzWquot(X1''', X2')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), zWquot(activate(X1'''), activate(X2'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2'''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), X2'''))

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 14
Narrowing Transformation
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1, nzWquot(X1'', X2'''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), X2'''))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nzWquot(X1''', X2')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), zWquot(activate(X1'''), activate(X2'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', ns(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), s(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nfrom(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), from(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1''', X2''))) -> ZWQUOT(activate(X1), zWquot(X1''', activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nzWquot(X1''', X2'), X2''))) -> ZWQUOT(activate(X1), zWquot(zWquot(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(ns(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(s(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nfrom(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(from(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nzWquot(X1''', X2'), nzWquot(X1'', X2''))) -> ZWQUOT(zWquot(activate(X1'''), activate(X2')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1'', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1'', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), s(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, ns(ns(X'')))) -> ZWQUOT(activate(X1), s(s(activate(X''))))
ACTIVATE(nzWquot(X1, ns(nfrom(X'')))) -> ZWQUOT(activate(X1), s(from(activate(X''))))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(nzWquot(ns(X''), ns(X'))) -> ZWQUOT(s(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), ns(X'))) -> ZWQUOT(from(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), s(X''))


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1, X2')) -> ZWQUOT(activate(X1), X2')
four new Dependency Pairs are created:

ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 15
Polynomial Ordering
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', nzWquot(X1''', X2')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), zWquot(activate(X1'''), activate(X2'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', ns(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), s(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nfrom(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), from(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1''', X2''))) -> ZWQUOT(activate(X1), zWquot(X1''', activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nzWquot(X1''', X2'), X2''))) -> ZWQUOT(activate(X1), zWquot(zWquot(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(ns(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(s(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nfrom(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(from(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nzWquot(X1''', X2'), nzWquot(X1'', X2''))) -> ZWQUOT(zWquot(activate(X1'''), activate(X2')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1'', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1'', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), s(X''))
ACTIVATE(nzWquot(X1, ns(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), s(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, ns(ns(X'')))) -> ZWQUOT(activate(X1), s(s(activate(X''))))
ACTIVATE(nzWquot(X1, ns(nfrom(X'')))) -> ZWQUOT(activate(X1), s(from(activate(X''))))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(nzWquot(ns(X''), ns(X'))) -> ZWQUOT(s(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), ns(X'))) -> ZWQUOT(from(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ACTIVATE(nfrom(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2'''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), X2'''))


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





The following dependency pair can be strictly oriented:

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(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(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(from(x1))=  1 + x1  
  POL(activate(x1))=  x1  
  POL(minus(x1, x2))=  0  
  POL(n__s(x1))=  x1  
  POL(ACTIVATE(x1))=  x1  
  POL(n__from(x1))=  1 + x1  
  POL(0)=  0  
  POL(n__zWquot(x1, x2))=  x1 + x2  
  POL(zWquot(x1, x2))=  x1 + x2  
  POL(cons(x1, x2))=  x2  
  POL(nil)=  0  
  POL(quot(x1, x2))=  0  
  POL(s(x1))=  x1  
  POL(ZWQUOT(x1, x2))=  x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 16
Polynomial Ordering
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', nzWquot(X1''', X2')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), zWquot(activate(X1'''), activate(X2'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', ns(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), s(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nfrom(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), from(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1''', X2''))) -> ZWQUOT(activate(X1), zWquot(X1''', activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nzWquot(X1''', X2'), X2''))) -> ZWQUOT(activate(X1), zWquot(zWquot(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(ns(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(s(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nfrom(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(from(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nzWquot(X1''', X2'), nzWquot(X1'', X2''))) -> ZWQUOT(zWquot(activate(X1'''), activate(X2')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1'', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1'', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), s(X''))
ACTIVATE(nzWquot(X1, ns(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), s(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, ns(ns(X'')))) -> ZWQUOT(activate(X1), s(s(activate(X''))))
ACTIVATE(nzWquot(X1, ns(nfrom(X'')))) -> ZWQUOT(activate(X1), s(from(activate(X''))))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(nzWquot(ns(X''), ns(X'))) -> ZWQUOT(s(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), ns(X'))) -> ZWQUOT(from(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ns(X)) -> ACTIVATE(X)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2'''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), X2'''))


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





The following dependency pair can be strictly oriented:

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(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(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(from(x1))=  0  
  POL(activate(x1))=  x1  
  POL(minus(x1, x2))=  0  
  POL(n__s(x1))=  1 + x1  
  POL(ACTIVATE(x1))=  x1  
  POL(n__from(x1))=  0  
  POL(0)=  0  
  POL(n__zWquot(x1, x2))=  x1 + x2  
  POL(zWquot(x1, x2))=  x1 + x2  
  POL(cons(x1, x2))=  x2  
  POL(nil)=  0  
  POL(quot(x1, x2))=  0  
  POL(s(x1))=  1 + x1  
  POL(ZWQUOT(x1, x2))=  x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 17
Polynomial Ordering
       →DP Problem 4
Nar


Dependency Pairs:

ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', nzWquot(X1''', X2')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), zWquot(activate(X1'''), activate(X2'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', ns(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), s(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nfrom(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), from(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1''', X2''))) -> ZWQUOT(activate(X1), zWquot(X1''', activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nzWquot(X1''', X2'), X2''))) -> ZWQUOT(activate(X1), zWquot(zWquot(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(ns(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(s(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nfrom(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(from(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nzWquot(X1''', X2'), nzWquot(X1'', X2''))) -> ZWQUOT(zWquot(activate(X1'''), activate(X2')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1'', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1'', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), s(X''))
ACTIVATE(nzWquot(X1, ns(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), s(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, ns(ns(X'')))) -> ZWQUOT(activate(X1), s(s(activate(X''))))
ACTIVATE(nzWquot(X1, ns(nfrom(X'')))) -> ZWQUOT(activate(X1), s(from(activate(X''))))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(nzWquot(ns(X''), ns(X'))) -> ZWQUOT(s(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), ns(X'))) -> ZWQUOT(from(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2'''))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), X2'''))


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





The following dependency pairs can be strictly oriented:

ACTIVATE(nzWquot(X1', X2')) -> ZWQUOT(X1', X2')
ACTIVATE(nzWquot(nzWquot(X1'', X2''), X2')) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), X2')
ACTIVATE(nzWquot(ns(X'), X2')) -> ZWQUOT(s(activate(X')), X2')
ACTIVATE(nzWquot(nfrom(X'), X2')) -> ZWQUOT(from(activate(X')), X2')
ACTIVATE(nzWquot(X1, nzWquot(X1'', nzWquot(X1''', X2')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), zWquot(activate(X1'''), activate(X2'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', ns(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), s(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1'', nfrom(X')))) -> ZWQUOT(activate(X1), zWquot(activate(X1''), from(activate(X'))))
ACTIVATE(nzWquot(X1, nzWquot(X1''', X2''))) -> ZWQUOT(activate(X1), zWquot(X1''', activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nzWquot(X1''', X2'), X2''))) -> ZWQUOT(activate(X1), zWquot(zWquot(activate(X1'''), activate(X2')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(ns(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(s(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1, nzWquot(nfrom(X'), X2''))) -> ZWQUOT(activate(X1), zWquot(from(activate(X')), activate(X2'')))
ACTIVATE(nzWquot(X1', nzWquot(X1'', X2''))) -> ZWQUOT(X1', zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nzWquot(X1''', X2'), nzWquot(X1'', X2''))) -> ZWQUOT(zWquot(activate(X1'''), activate(X2')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1'', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1'', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1''), activate(X2'')))
ACTIVATE(nzWquot(X1, ns(X''))) -> ZWQUOT(activate(X1), s(X''))
ACTIVATE(nzWquot(X1, ns(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), s(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, ns(ns(X'')))) -> ZWQUOT(activate(X1), s(s(activate(X''))))
ACTIVATE(nzWquot(X1, ns(nfrom(X'')))) -> ZWQUOT(activate(X1), s(from(activate(X''))))
ACTIVATE(nzWquot(X1', ns(X'))) -> ZWQUOT(X1', s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), s(activate(X')))
ACTIVATE(nzWquot(ns(X''), ns(X'))) -> ZWQUOT(s(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), ns(X'))) -> ZWQUOT(from(activate(X'')), s(activate(X')))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), from(X''))
ACTIVATE(nzWquot(X1, nfrom(nzWquot(X1'', X2')))) -> ZWQUOT(activate(X1), from(zWquot(activate(X1''), activate(X2'))))
ACTIVATE(nzWquot(X1, nfrom(ns(X'')))) -> ZWQUOT(activate(X1), from(s(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(nfrom(X'')))) -> ZWQUOT(activate(X1), from(from(activate(X''))))
ACTIVATE(nzWquot(X1, nfrom(X''))) -> ZWQUOT(activate(X1), cons(activate(X''), nfrom(ns(activate(X'')))))
ACTIVATE(nzWquot(X1', nfrom(X'))) -> ZWQUOT(X1', from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2')), from(activate(X')))
ACTIVATE(nzWquot(ns(X''), nfrom(X'))) -> ZWQUOT(s(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nfrom(X''), nfrom(X'))) -> ZWQUOT(from(activate(X'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nzWquot(X1', X2'''))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), zWquot(activate(X1'), activate(X2''')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), ns(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), s(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2''), nfrom(X'))) -> ZWQUOT(zWquot(activate(X1''), activate(X2'')), from(activate(X')))
ACTIVATE(nzWquot(nzWquot(X1'', X2'''), X2)) -> ZWQUOT(zWquot(activate(X1''), X2'''), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nzWquot(X1', X2''')), X2)) -> ZWQUOT(zWquot(activate(X1''), zWquot(activate(X1'), activate(X2'''))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', ns(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), s(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1'', nfrom(X')), X2)) -> ZWQUOT(zWquot(activate(X1''), from(activate(X'))), activate(X2))
ACTIVATE(nzWquot(nzWquot(X1''', X2''), X2)) -> ZWQUOT(zWquot(X1''', activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nzWquot(X1', X2'''), X2''), X2)) -> ZWQUOT(zWquot(zWquot(activate(X1'), activate(X2''')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(ns(X'), X2''), X2)) -> ZWQUOT(zWquot(s(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(nzWquot(nfrom(X'), X2''), X2)) -> ZWQUOT(zWquot(from(activate(X')), activate(X2'')), activate(X2))
ACTIVATE(nzWquot(ns(X'), nzWquot(X1', X2''))) -> ZWQUOT(s(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(ns(X'), ns(X''))) -> ZWQUOT(s(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(ns(X'), nfrom(X''))) -> ZWQUOT(s(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(ns(X''), X2)) -> ZWQUOT(s(X''), activate(X2))
ACTIVATE(nzWquot(ns(nzWquot(X1', X2'')), X2)) -> ZWQUOT(s(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(ns(ns(X'')), X2)) -> ZWQUOT(s(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(ns(nfrom(X'')), X2)) -> ZWQUOT(s(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X'), nzWquot(X1', X2''))) -> ZWQUOT(from(activate(X')), zWquot(activate(X1'), activate(X2'')))
ACTIVATE(nzWquot(nfrom(X'), ns(X''))) -> ZWQUOT(from(activate(X')), s(activate(X'')))
ACTIVATE(nzWquot(nfrom(X'), nfrom(X''))) -> ZWQUOT(from(activate(X')), from(activate(X'')))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(from(X''), activate(X2))
ACTIVATE(nzWquot(nfrom(nzWquot(X1', X2'')), X2)) -> ZWQUOT(from(zWquot(activate(X1'), activate(X2''))), activate(X2))
ACTIVATE(nzWquot(nfrom(ns(X'')), X2)) -> ZWQUOT(from(s(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(nfrom(X'')), X2)) -> ZWQUOT(from(from(activate(X''))), activate(X2))
ACTIVATE(nzWquot(nfrom(X''), X2)) -> ZWQUOT(cons(activate(X''), nfrom(ns(activate(X'')))), activate(X2))
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X2)
ACTIVATE(nzWquot(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(nzWquot(X1, nzWquot(X1'', X2'''))) -> ZWQUOT(activate(X1), zWquot(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(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(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(from(x1))=  0  
  POL(activate(x1))=  x1  
  POL(minus(x1, x2))=  0  
  POL(n__s(x1))=  0  
  POL(ACTIVATE(x1))=  x1  
  POL(n__from(x1))=  0  
  POL(0)=  0  
  POL(n__zWquot(x1, x2))=  1 + x1 + x2  
  POL(zWquot(x1, x2))=  1 + x1 + x2  
  POL(cons(x1, x2))=  x2  
  POL(nil)=  0  
  POL(quot(x1, x2))=  0  
  POL(s(x1))=  0  
  POL(ZWQUOT(x1, x2))=  x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
           →DP Problem 7
Nar
             ...
               →DP Problem 18
Dependency Graph
       →DP Problem 4
Nar


Dependency Pairs:

ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(YS)
ZWQUOT(cons(X, XS), cons(Y, YS)) -> ACTIVATE(XS)


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





Using the Dependency Graph resulted in no new DP problems.


   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
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)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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, nzWquot(X1', X2'))) -> SEL(N, zWquot(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
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
Nar
           →DP Problem 19
Narrowing Transformation


Dependency Pairs:

SEL(s(N), cons(X, XS')) -> SEL(N, XS')
SEL(s(N), cons(X, nzWquot(X1', X2'))) -> SEL(N, zWquot(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)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1', X2')))) -> SEL(N, from(zWquot(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
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
Nar
           →DP Problem 19
Nar
             ...
               →DP Problem 20
Narrowing Transformation


Dependency Pairs:

SEL(s(N), cons(X, nfrom(X'''))) -> SEL(N, from(X'''))
SEL(s(N), cons(X, nfrom(nzWquot(X1', X2')))) -> SEL(N, from(zWquot(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, nzWquot(X1', X2'))) -> SEL(N, zWquot(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)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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(nzWquot(X1', X2')))) -> SEL(N, s(zWquot(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
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
Nar
           →DP Problem 19
Nar
             ...
               →DP Problem 21
Narrowing Transformation


Dependency Pairs:

SEL(s(N), cons(X, ns(X'''))) -> SEL(N, s(X'''))
SEL(s(N), cons(X, ns(nzWquot(X1', X2')))) -> SEL(N, s(zWquot(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(nzWquot(X1', X2')))) -> SEL(N, from(zWquot(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, nzWquot(X1', X2'))) -> SEL(N, zWquot(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)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(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, nzWquot(X1', X2'))) -> SEL(N, zWquot(activate(X1'), activate(X2')))
nine new Dependency Pairs are created:

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

The transformation is resulting in one new DP problem:



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
Nar
           →DP Problem 19
Nar
             ...
               →DP Problem 22
Polynomial Ordering


Dependency Pairs:

SEL(s(N), cons(X, nzWquot(X1', X2''))) -> SEL(N, zWquot(activate(X1'), X2''))
SEL(s(N), cons(X, nzWquot(X1', nzWquot(X1'', X2'')))) -> SEL(N, zWquot(activate(X1'), zWquot(activate(X1''), activate(X2''))))
SEL(s(N), cons(X, nzWquot(X1', ns(X'')))) -> SEL(N, zWquot(activate(X1'), s(activate(X''))))
SEL(s(N), cons(X, nzWquot(X1', nfrom(X'')))) -> SEL(N, zWquot(activate(X1'), from(activate(X''))))
SEL(s(N), cons(X, nzWquot(X1'', X2'))) -> SEL(N, zWquot(X1'', activate(X2')))
SEL(s(N), cons(X, nzWquot(nzWquot(X1'', X2''), X2'))) -> SEL(N, zWquot(zWquot(activate(X1''), activate(X2'')), activate(X2')))
SEL(s(N), cons(X, nzWquot(ns(X''), X2'))) -> SEL(N, zWquot(s(activate(X'')), activate(X2')))
SEL(s(N), cons(X, nzWquot(nfrom(X''), X2'))) -> SEL(N, zWquot(from(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ns(nzWquot(X1', X2')))) -> SEL(N, s(zWquot(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(nzWquot(X1', X2')))) -> SEL(N, from(zWquot(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)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





The following dependency pairs can be strictly oriented:

SEL(s(N), cons(X, nzWquot(X1', X2''))) -> SEL(N, zWquot(activate(X1'), X2''))
SEL(s(N), cons(X, nzWquot(X1', nzWquot(X1'', X2'')))) -> SEL(N, zWquot(activate(X1'), zWquot(activate(X1''), activate(X2''))))
SEL(s(N), cons(X, nzWquot(X1', ns(X'')))) -> SEL(N, zWquot(activate(X1'), s(activate(X''))))
SEL(s(N), cons(X, nzWquot(X1', nfrom(X'')))) -> SEL(N, zWquot(activate(X1'), from(activate(X''))))
SEL(s(N), cons(X, nzWquot(X1'', X2'))) -> SEL(N, zWquot(X1'', activate(X2')))
SEL(s(N), cons(X, nzWquot(nzWquot(X1'', X2''), X2'))) -> SEL(N, zWquot(zWquot(activate(X1''), activate(X2'')), activate(X2')))
SEL(s(N), cons(X, nzWquot(ns(X''), X2'))) -> SEL(N, zWquot(s(activate(X'')), activate(X2')))
SEL(s(N), cons(X, nzWquot(nfrom(X''), X2'))) -> SEL(N, zWquot(from(activate(X'')), activate(X2')))
SEL(s(N), cons(X, ns(nzWquot(X1', X2')))) -> SEL(N, s(zWquot(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(nzWquot(X1', X2')))) -> SEL(N, from(zWquot(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(from(x1))=  0  
  POL(activate(x1))=  0  
  POL(SEL(x1, x2))=  x1  
  POL(minus(x1, x2))=  0  
  POL(n__s(x1))=  0  
  POL(n__from(x1))=  0  
  POL(0)=  0  
  POL(n__zWquot(x1, x2))=  0  
  POL(zWquot(x1, x2))=  0  
  POL(cons(x1, x2))=  0  
  POL(nil)=  0  
  POL(quot(x1, x2))=  0  
  POL(s(x1))=  1 + x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
       →DP Problem 2
Polo
       →DP Problem 3
Nar
       →DP Problem 4
Nar
           →DP Problem 19
Nar
             ...
               →DP Problem 23
Dependency Graph


Dependency Pair:


Rules:


from(X) -> cons(X, nfrom(ns(X)))
from(X) -> nfrom(X)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
minus(X, 0) -> 0
minus(s(X), s(Y)) -> minus(X, Y)
quot(0, s(Y)) -> 0
quot(s(X), s(Y)) -> s(quot(minus(X, Y), s(Y)))
zWquot(XS, nil) -> nil
zWquot(nil, XS) -> nil
zWquot(cons(X, XS), cons(Y, YS)) -> cons(quot(X, Y), nzWquot(activate(XS), activate(YS)))
zWquot(X1, X2) -> nzWquot(X1, X2)
s(X) -> ns(X)
activate(nfrom(X)) -> from(activate(X))
activate(ns(X)) -> s(activate(X))
activate(nzWquot(X1, X2)) -> zWquot(activate(X1), activate(X2))
activate(X) -> X





Using the Dependency Graph resulted in no new DP problems.

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