Term Rewriting System R:
[YS, X, XS, X1, X2, Y, L]
aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

AAPP(nil, YS) -> MARK(YS)
AAPP(cons(X, XS), YS) -> MARK(X)
AFROM(X) -> MARK(X)
AZWADR(cons(X, XS), cons(Y, YS)) -> AAPP(mark(Y), cons(mark(X), nil))
AZWADR(cons(X, XS), cons(Y, YS)) -> MARK(Y)
AZWADR(cons(X, XS), cons(Y, YS)) -> MARK(X)
MARK(app(X1, X2)) -> AAPP(mark(X1), mark(X2))
MARK(app(X1, X2)) -> MARK(X1)
MARK(app(X1, X2)) -> MARK(X2)
MARK(from(X)) -> AFROM(mark(X))
MARK(from(X)) -> MARK(X)
MARK(zWadr(X1, X2)) -> AZWADR(mark(X1), mark(X2))
MARK(zWadr(X1, X2)) -> MARK(X1)
MARK(zWadr(X1, X2)) -> MARK(X2)
MARK(prefix(X)) -> APREFIX(mark(X))
MARK(prefix(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(s(X)) -> MARK(X)

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Polynomial Ordering


Dependency Pairs:

AZWADR(cons(X, XS), cons(Y, YS)) -> MARK(X)
MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(prefix(X)) -> MARK(X)
MARK(zWadr(X1, X2)) -> MARK(X2)
MARK(zWadr(X1, X2)) -> MARK(X1)
AZWADR(cons(X, XS), cons(Y, YS)) -> MARK(Y)
AZWADR(cons(X, XS), cons(Y, YS)) -> AAPP(mark(Y), cons(mark(X), nil))
MARK(zWadr(X1, X2)) -> AZWADR(mark(X1), mark(X2))
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
MARK(app(X1, X2)) -> MARK(X2)
MARK(app(X1, X2)) -> MARK(X1)
AAPP(cons(X, XS), YS) -> MARK(X)
MARK(app(X1, X2)) -> AAPP(mark(X1), mark(X2))
AAPP(nil, YS) -> MARK(YS)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





The following dependency pairs can be strictly oriented:

AZWADR(cons(X, XS), cons(Y, YS)) -> MARK(X)
MARK(zWadr(X1, X2)) -> MARK(X2)
MARK(zWadr(X1, X2)) -> MARK(X1)
AZWADR(cons(X, XS), cons(Y, YS)) -> MARK(Y)
AZWADR(cons(X, XS), cons(Y, YS)) -> AAPP(mark(Y), cons(mark(X), nil))


Additionally, the following usable rules using the Ce-refinement can be oriented:

mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(from(x1))=  x1  
  POL(A__APP(x1, x2))=  x1 + x2  
  POL(MARK(x1))=  x1  
  POL(A__FROM(x1))=  x1  
  POL(mark(x1))=  x1  
  POL(a__from(x1))=  x1  
  POL(A__ZWADR(x1, x2))=  1 + x1 + x2  
  POL(a__prefix(x1))=  x1  
  POL(cons(x1, x2))=  x1  
  POL(a__app(x1, x2))=  x1 + x2  
  POL(nil)=  0  
  POL(s(x1))=  x1  
  POL(a__zWadr(x1, x2))=  1 + x1 + x2  
  POL(prefix(x1))=  x1  
  POL(app(x1, x2))=  x1 + x2  
  POL(zWadr(x1, x2))=  1 + x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
Dependency Graph


Dependency Pairs:

MARK(s(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(prefix(X)) -> MARK(X)
MARK(zWadr(X1, X2)) -> AZWADR(mark(X1), mark(X2))
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
MARK(app(X1, X2)) -> MARK(X2)
MARK(app(X1, X2)) -> MARK(X1)
AAPP(cons(X, XS), YS) -> MARK(X)
MARK(app(X1, X2)) -> AAPP(mark(X1), mark(X2))
AAPP(nil, YS) -> MARK(YS)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





Using the Dependency Graph the DP problem was split into 1 DP problems.


   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 3
Polynomial Ordering


Dependency Pairs:

AAPP(cons(X, XS), YS) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
MARK(prefix(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
MARK(app(X1, X2)) -> MARK(X2)
MARK(app(X1, X2)) -> MARK(X1)
AAPP(nil, YS) -> MARK(YS)
MARK(app(X1, X2)) -> AAPP(mark(X1), mark(X2))
MARK(s(X)) -> MARK(X)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





The following dependency pairs can be strictly oriented:

AAPP(cons(X, XS), YS) -> MARK(X)
MARK(app(X1, X2)) -> MARK(X2)
MARK(app(X1, X2)) -> MARK(X1)
AAPP(nil, YS) -> MARK(YS)


Additionally, the following usable rules using the Ce-refinement can be oriented:

mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(from(x1))=  x1  
  POL(A__APP(x1, x2))=  1 + x1 + x2  
  POL(MARK(x1))=  x1  
  POL(A__FROM(x1))=  x1  
  POL(mark(x1))=  x1  
  POL(a__from(x1))=  x1  
  POL(a__prefix(x1))=  x1  
  POL(cons(x1, x2))=  x1  
  POL(a__app(x1, x2))=  1 + x1 + x2  
  POL(nil)=  0  
  POL(s(x1))=  x1  
  POL(a__zWadr(x1, x2))=  1 + x1 + x2  
  POL(prefix(x1))=  x1  
  POL(app(x1, x2))=  1 + x1 + x2  
  POL(zWadr(x1, x2))=  1 + x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 4
Dependency Graph


Dependency Pairs:

MARK(cons(X1, X2)) -> MARK(X1)
MARK(prefix(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
MARK(app(X1, X2)) -> AAPP(mark(X1), mark(X2))
MARK(s(X)) -> MARK(X)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





Using the Dependency Graph the DP problem was split into 1 DP problems.


   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 5
Polynomial Ordering


Dependency Pairs:

MARK(s(X)) -> MARK(X)
MARK(prefix(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
MARK(cons(X1, X2)) -> MARK(X1)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





The following dependency pair can be strictly oriented:

MARK(s(X)) -> MARK(X)


Additionally, the following usable rules using the Ce-refinement can be oriented:

mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(from(x1))=  x1  
  POL(MARK(x1))=  x1  
  POL(A__FROM(x1))=  x1  
  POL(mark(x1))=  x1  
  POL(a__from(x1))=  x1  
  POL(a__prefix(x1))=  x1  
  POL(cons(x1, x2))=  x1  
  POL(a__app(x1, x2))=  x1 + x2  
  POL(nil)=  0  
  POL(s(x1))=  1 + x1  
  POL(a__zWadr(x1, x2))=  x1 + x2  
  POL(app(x1, x2))=  x1 + x2  
  POL(prefix(x1))=  x1  
  POL(zWadr(x1, x2))=  x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 6
Polynomial Ordering


Dependency Pairs:

MARK(prefix(X)) -> MARK(X)
MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
MARK(cons(X1, X2)) -> MARK(X1)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





The following dependency pair can be strictly oriented:

MARK(prefix(X)) -> MARK(X)


Additionally, the following usable rules using the Ce-refinement can be oriented:

mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(from(x1))=  x1  
  POL(MARK(x1))=  x1  
  POL(A__FROM(x1))=  x1  
  POL(mark(x1))=  x1  
  POL(a__from(x1))=  x1  
  POL(a__prefix(x1))=  1 + x1  
  POL(cons(x1, x2))=  x1  
  POL(a__app(x1, x2))=  x1 + x2  
  POL(nil)=  0  
  POL(s(x1))=  0  
  POL(a__zWadr(x1, x2))=  x1 + x2  
  POL(app(x1, x2))=  x1 + x2  
  POL(prefix(x1))=  1 + x1  
  POL(zWadr(x1, x2))=  x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 7
Polynomial Ordering


Dependency Pairs:

MARK(from(X)) -> MARK(X)
AFROM(X) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))
MARK(cons(X1, X2)) -> MARK(X1)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





The following dependency pairs can be strictly oriented:

MARK(from(X)) -> MARK(X)
MARK(from(X)) -> AFROM(mark(X))


Additionally, the following usable rules using the Ce-refinement can be oriented:

mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)


Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(from(x1))=  1 + x1  
  POL(MARK(x1))=  x1  
  POL(A__FROM(x1))=  x1  
  POL(mark(x1))=  x1  
  POL(a__from(x1))=  1 + x1  
  POL(a__prefix(x1))=  0  
  POL(cons(x1, x2))=  x1  
  POL(a__app(x1, x2))=  x1 + x2  
  POL(nil)=  0  
  POL(s(x1))=  0  
  POL(a__zWadr(x1, x2))=  x1 + x2  
  POL(app(x1, x2))=  x1 + x2  
  POL(prefix(x1))=  0  
  POL(zWadr(x1, x2))=  x1 + x2  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 8
Dependency Graph


Dependency Pairs:

AFROM(X) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





Using the Dependency Graph the DP problem was split into 1 DP problems.


   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 9
Polynomial Ordering


Dependency Pair:

MARK(cons(X1, X2)) -> MARK(X1)


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





The following dependency pair can be strictly oriented:

MARK(cons(X1, X2)) -> MARK(X1)


There are no usable rules using the Ce-refinement that need to be oriented.

Used ordering: Polynomial ordering with Polynomial interpretation:
  POL(MARK(x1))=  x1  
  POL(cons(x1, x2))=  1 + x1  

resulting in one new DP problem.



   R
DPs
       →DP Problem 1
Polo
           →DP Problem 2
DGraph
             ...
               →DP Problem 10
Dependency Graph


Dependency Pair:


Rules:


aapp(nil, YS) -> mark(YS)
aapp(cons(X, XS), YS) -> cons(mark(X), app(XS, YS))
aapp(X1, X2) -> app(X1, X2)
afrom(X) -> cons(mark(X), from(s(X)))
afrom(X) -> from(X)
azWadr(nil, YS) -> nil
azWadr(XS, nil) -> nil
azWadr(cons(X, XS), cons(Y, YS)) -> cons(aapp(mark(Y), cons(mark(X), nil)), zWadr(XS, YS))
azWadr(X1, X2) -> zWadr(X1, X2)
aprefix(L) -> cons(nil, zWadr(L, prefix(L)))
aprefix(X) -> prefix(X)
mark(app(X1, X2)) -> aapp(mark(X1), mark(X2))
mark(from(X)) -> afrom(mark(X))
mark(zWadr(X1, X2)) -> azWadr(mark(X1), mark(X2))
mark(prefix(X)) -> aprefix(mark(X))
mark(nil) -> nil
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(s(X)) -> s(mark(X))





Using the Dependency Graph resulted in no new DP problems.

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