(0) Obligation:

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

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(app(nil, YS)) → MARK(YS)
ACTIVE(app(cons(X, XS), YS)) → MARK(cons(X, app(XS, YS)))
ACTIVE(app(cons(X, XS), YS)) → CONS(X, app(XS, YS))
ACTIVE(app(cons(X, XS), YS)) → APP(XS, YS)
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
ACTIVE(from(X)) → CONS(X, from(s(X)))
ACTIVE(from(X)) → FROM(s(X))
ACTIVE(from(X)) → S(X)
ACTIVE(zWadr(nil, YS)) → MARK(nil)
ACTIVE(zWadr(XS, nil)) → MARK(nil)
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → MARK(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → CONS(app(Y, cons(X, nil)), zWadr(XS, YS))
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → APP(Y, cons(X, nil))
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → CONS(X, nil)
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → ZWADR(XS, YS)
ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))
ACTIVE(prefix(L)) → CONS(nil, zWadr(L, prefix(L)))
ACTIVE(prefix(L)) → ZWADR(L, prefix(L))
MARK(app(X1, X2)) → ACTIVE(app(mark(X1), mark(X2)))
MARK(app(X1, X2)) → APP(mark(X1), mark(X2))
MARK(app(X1, X2)) → MARK(X1)
MARK(app(X1, X2)) → MARK(X2)
MARK(nil) → ACTIVE(nil)
MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
MARK(cons(X1, X2)) → CONS(mark(X1), X2)
MARK(cons(X1, X2)) → MARK(X1)
MARK(from(X)) → ACTIVE(from(mark(X)))
MARK(from(X)) → FROM(mark(X))
MARK(from(X)) → MARK(X)
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(s(X)) → S(mark(X))
MARK(s(X)) → MARK(X)
MARK(zWadr(X1, X2)) → ACTIVE(zWadr(mark(X1), mark(X2)))
MARK(zWadr(X1, X2)) → ZWADR(mark(X1), mark(X2))
MARK(zWadr(X1, X2)) → MARK(X1)
MARK(zWadr(X1, X2)) → MARK(X2)
MARK(prefix(X)) → ACTIVE(prefix(mark(X)))
MARK(prefix(X)) → PREFIX(mark(X))
MARK(prefix(X)) → MARK(X)
APP(mark(X1), X2) → APP(X1, X2)
APP(X1, mark(X2)) → APP(X1, X2)
APP(active(X1), X2) → APP(X1, X2)
APP(X1, active(X2)) → APP(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
CONS(X1, mark(X2)) → CONS(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)
FROM(mark(X)) → FROM(X)
FROM(active(X)) → FROM(X)
S(mark(X)) → S(X)
S(active(X)) → S(X)
ZWADR(mark(X1), X2) → ZWADR(X1, X2)
ZWADR(X1, mark(X2)) → ZWADR(X1, X2)
ZWADR(active(X1), X2) → ZWADR(X1, X2)
ZWADR(X1, active(X2)) → ZWADR(X1, X2)
PREFIX(mark(X)) → PREFIX(X)
PREFIX(active(X)) → PREFIX(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(3) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 7 SCCs with 20 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PREFIX(active(X)) → PREFIX(X)
PREFIX(mark(X)) → PREFIX(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(6) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PREFIX(active(X)) → PREFIX(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PREFIX(x1)  =  PREFIX(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
[PREFIX1, active1]

Status:
active1: [1]
PREFIX1: [1]


The following usable rules [FROCOS05] were oriented: none

(7) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PREFIX(mark(X)) → PREFIX(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(8) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


PREFIX(mark(X)) → PREFIX(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
PREFIX(x1)  =  x1
mark(x1)  =  mark(x1)

Lexicographic path order with status [LPO].
Quasi-Precedence:
trivial

Status:
mark1: [1]


The following usable rules [FROCOS05] were oriented: none

(9) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(10) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(11) TRUE

(12) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ZWADR(X1, mark(X2)) → ZWADR(X1, X2)
ZWADR(mark(X1), X2) → ZWADR(X1, X2)
ZWADR(active(X1), X2) → ZWADR(X1, X2)
ZWADR(X1, active(X2)) → ZWADR(X1, X2)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(13) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


ZWADR(X1, mark(X2)) → ZWADR(X1, X2)
ZWADR(mark(X1), X2) → ZWADR(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ZWADR(x1, x2)  =  ZWADR(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
[ZWADR2, mark1]

Status:
mark1: [1]
ZWADR2: [2,1]


The following usable rules [FROCOS05] were oriented: none

(14) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ZWADR(active(X1), X2) → ZWADR(X1, X2)
ZWADR(X1, active(X2)) → ZWADR(X1, X2)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(15) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


ZWADR(active(X1), X2) → ZWADR(X1, X2)
ZWADR(X1, active(X2)) → ZWADR(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Lexicographic path order with status [LPO].
Quasi-Precedence:
[ZWADR2, active1]

Status:
active1: [1]
ZWADR2: [2,1]


The following usable rules [FROCOS05] were oriented: none

(16) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(17) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(18) TRUE

(19) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(active(X)) → S(X)
S(mark(X)) → S(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(20) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


S(active(X)) → S(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
S(x1)  =  S(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
[S1, active1]

Status:
active1: [1]
S1: [1]


The following usable rules [FROCOS05] were oriented: none

(21) Obligation:

Q DP problem:
The TRS P consists of the following rules:

S(mark(X)) → S(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(22) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


S(mark(X)) → S(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
S(x1)  =  x1
mark(x1)  =  mark(x1)

Lexicographic path order with status [LPO].
Quasi-Precedence:
trivial

Status:
mark1: [1]


The following usable rules [FROCOS05] were oriented: none

(23) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(24) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(25) TRUE

(26) Obligation:

Q DP problem:
The TRS P consists of the following rules:

FROM(active(X)) → FROM(X)
FROM(mark(X)) → FROM(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(27) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


FROM(active(X)) → FROM(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
FROM(x1)  =  FROM(x1)
active(x1)  =  active(x1)
mark(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
[FROM1, active1]

Status:
active1: [1]
FROM1: [1]


The following usable rules [FROCOS05] were oriented: none

(28) Obligation:

Q DP problem:
The TRS P consists of the following rules:

FROM(mark(X)) → FROM(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(29) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


FROM(mark(X)) → FROM(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
FROM(x1)  =  x1
mark(x1)  =  mark(x1)

Lexicographic path order with status [LPO].
Quasi-Precedence:
trivial

Status:
mark1: [1]


The following usable rules [FROCOS05] were oriented: none

(30) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(31) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(32) TRUE

(33) Obligation:

Q DP problem:
The TRS P consists of the following rules:

CONS(X1, mark(X2)) → CONS(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(34) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


CONS(X1, mark(X2)) → CONS(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
CONS(x1, x2)  =  CONS(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
[CONS2, mark1]

Status:
CONS2: [2,1]
mark1: [1]


The following usable rules [FROCOS05] were oriented: none

(35) Obligation:

Q DP problem:
The TRS P consists of the following rules:

CONS(active(X1), X2) → CONS(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(36) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


CONS(active(X1), X2) → CONS(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Lexicographic path order with status [LPO].
Quasi-Precedence:
[CONS2, active1]

Status:
active1: [1]
CONS2: [2,1]


The following usable rules [FROCOS05] were oriented: none

(37) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(38) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(39) TRUE

(40) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP(X1, mark(X2)) → APP(X1, X2)
APP(mark(X1), X2) → APP(X1, X2)
APP(active(X1), X2) → APP(X1, X2)
APP(X1, active(X2)) → APP(X1, X2)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(41) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


APP(X1, mark(X2)) → APP(X1, X2)
APP(mark(X1), X2) → APP(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
APP(x1, x2)  =  APP(x1, x2)
mark(x1)  =  mark(x1)
active(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
[APP2, mark1]

Status:
APP2: [2,1]
mark1: [1]


The following usable rules [FROCOS05] were oriented: none

(42) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP(active(X1), X2) → APP(X1, X2)
APP(X1, active(X2)) → APP(X1, X2)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(43) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


APP(active(X1), X2) → APP(X1, X2)
APP(X1, active(X2)) → APP(X1, X2)
The remaining pairs can at least be oriented weakly.
Used ordering: Lexicographic path order with status [LPO].
Quasi-Precedence:
[APP2, active1]

Status:
active1: [1]
APP2: [2,1]


The following usable rules [FROCOS05] were oriented: none

(44) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(45) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(46) TRUE

(47) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(app(X1, X2)) → ACTIVE(app(mark(X1), mark(X2)))
ACTIVE(app(nil, YS)) → MARK(YS)
MARK(app(X1, X2)) → MARK(X1)
MARK(app(X1, X2)) → MARK(X2)
MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
ACTIVE(app(cons(X, XS), YS)) → MARK(cons(X, app(XS, YS)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
MARK(from(X)) → MARK(X)
MARK(s(X)) → ACTIVE(s(mark(X)))
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → MARK(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
MARK(s(X)) → MARK(X)
MARK(zWadr(X1, X2)) → ACTIVE(zWadr(mark(X1), mark(X2)))
ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))
MARK(zWadr(X1, X2)) → MARK(X1)
MARK(zWadr(X1, X2)) → MARK(X2)
MARK(prefix(X)) → ACTIVE(prefix(mark(X)))
MARK(prefix(X)) → MARK(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(48) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(cons(X1, X2)) → ACTIVE(cons(mark(X1), X2))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  MARK
app(x1, x2)  =  app
ACTIVE(x1)  =  x1
mark(x1)  =  x1
nil  =  nil
cons(x1, x2)  =  cons
from(x1)  =  from
s(x1)  =  s
zWadr(x1, x2)  =  zWadr
prefix(x1)  =  prefix
active(x1)  =  active

Lexicographic path order with status [LPO].
Quasi-Precedence:
nil > [MARK, app, from, s, zWadr, prefix] > [cons, active]

Status:
from: []
active: []
MARK: []
cons: []
prefix: []
app: []
s: []
nil: []
zWadr: []


The following usable rules [FROCOS05] were oriented:

s(active(X)) → s(X)
s(mark(X)) → s(X)
from(active(X)) → from(X)
from(mark(X)) → from(X)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
app(mark(X1), X2) → app(X1, X2)

(49) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(app(X1, X2)) → ACTIVE(app(mark(X1), mark(X2)))
ACTIVE(app(nil, YS)) → MARK(YS)
MARK(app(X1, X2)) → MARK(X1)
MARK(app(X1, X2)) → MARK(X2)
ACTIVE(app(cons(X, XS), YS)) → MARK(cons(X, app(XS, YS)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
MARK(from(X)) → MARK(X)
MARK(s(X)) → ACTIVE(s(mark(X)))
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → MARK(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
MARK(s(X)) → MARK(X)
MARK(zWadr(X1, X2)) → ACTIVE(zWadr(mark(X1), mark(X2)))
ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))
MARK(zWadr(X1, X2)) → MARK(X1)
MARK(zWadr(X1, X2)) → MARK(X2)
MARK(prefix(X)) → ACTIVE(prefix(mark(X)))
MARK(prefix(X)) → MARK(X)

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(50) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


ACTIVE(app(nil, YS)) → MARK(YS)
MARK(app(X1, X2)) → MARK(X1)
MARK(app(X1, X2)) → MARK(X2)
ACTIVE(app(cons(X, XS), YS)) → MARK(cons(X, app(XS, YS)))
MARK(cons(X1, X2)) → MARK(X1)
MARK(from(X)) → MARK(X)
ACTIVE(zWadr(cons(X, XS), cons(Y, YS))) → MARK(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
MARK(s(X)) → MARK(X)
MARK(zWadr(X1, X2)) → MARK(X1)
MARK(zWadr(X1, X2)) → MARK(X2)
MARK(prefix(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  x1
app(x1, x2)  =  app(x1, x2)
ACTIVE(x1)  =  x1
mark(x1)  =  x1
nil  =  nil
cons(x1, x2)  =  cons(x1)
from(x1)  =  from(x1)
s(x1)  =  s(x1)
zWadr(x1, x2)  =  zWadr(x1, x2)
prefix(x1)  =  prefix(x1)
active(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
s1 > [nil, cons1, from1, prefix1]
zWadr2 > app2 > [nil, cons1, from1, prefix1]

Status:
prefix1: [1]
from1: [1]
cons1: [1]
s1: [1]
app2: [1,2]
zWadr2: [1,2]
nil: []


The following usable rules [FROCOS05] were oriented:

s(active(X)) → s(X)
s(mark(X)) → s(X)
from(active(X)) → from(X)
from(mark(X)) → from(X)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
mark(nil) → active(nil)
active(from(X)) → mark(cons(X, from(s(X))))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(prefix(X)) → active(prefix(mark(X)))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
mark(s(X)) → active(s(mark(X)))
active(app(nil, YS)) → mark(YS)
mark(from(X)) → active(from(mark(X)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(nil, YS)) → mark(nil)
app(active(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
app(mark(X1), X2) → app(X1, X2)

(51) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(app(X1, X2)) → ACTIVE(app(mark(X1), mark(X2)))
MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(zWadr(X1, X2)) → ACTIVE(zWadr(mark(X1), mark(X2)))
ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))
MARK(prefix(X)) → ACTIVE(prefix(mark(X)))

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(52) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(app(X1, X2)) → ACTIVE(app(mark(X1), mark(X2)))
MARK(zWadr(X1, X2)) → ACTIVE(zWadr(mark(X1), mark(X2)))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  x1
app(x1, x2)  =  app(x1, x2)
ACTIVE(x1)  =  ACTIVE
mark(x1)  =  mark
from(x1)  =  x1
cons(x1, x2)  =  cons
s(x1)  =  x1
zWadr(x1, x2)  =  zWadr
prefix(x1)  =  x1
nil  =  nil
active(x1)  =  active

Lexicographic path order with status [LPO].
Quasi-Precedence:
app2 > mark > [nil, active] > zWadr > [ACTIVE, cons]

Status:
active: []
cons: []
mark: []
app2: [2,1]
nil: []
zWadr: []
ACTIVE: []


The following usable rules [FROCOS05] were oriented:

cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)

(53) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
MARK(s(X)) → ACTIVE(s(mark(X)))
ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))
MARK(prefix(X)) → ACTIVE(prefix(mark(X)))

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(54) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(prefix(X)) → ACTIVE(prefix(mark(X)))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  x1
from(x1)  =  x1
ACTIVE(x1)  =  ACTIVE
mark(x1)  =  mark
cons(x1, x2)  =  cons
s(x1)  =  s
prefix(x1)  =  prefix
nil  =  nil
zWadr(x1, x2)  =  zWadr
active(x1)  =  active
app(x1, x2)  =  app(x1, x2)

Lexicographic path order with status [LPO].
Quasi-Precedence:
[mark, app2] > prefix > [ACTIVE, cons, s, nil, zWadr, active]

Status:
active: []
cons: []
prefix: []
mark: []
app2: [1,2]
s: []
nil: []
ACTIVE: []
zWadr: []


The following usable rules [FROCOS05] were oriented:

cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)

(55) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
MARK(s(X)) → ACTIVE(s(mark(X)))
ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(56) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(s(X)) → ACTIVE(s(mark(X)))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  x1
from(x1)  =  x1
ACTIVE(x1)  =  ACTIVE
mark(x1)  =  x1
cons(x1, x2)  =  cons
s(x1)  =  s
prefix(x1)  =  x1
nil  =  nil
zWadr(x1, x2)  =  x2
active(x1)  =  active
app(x1, x2)  =  app(x1, x2)

Lexicographic path order with status [LPO].
Quasi-Precedence:
[s, active] > nil > [ACTIVE, cons, app2]

Status:
active: []
cons: []
app2: [2,1]
s: []
nil: []
ACTIVE: []


The following usable rules [FROCOS05] were oriented:

cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)

(57) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(58) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


ACTIVE(prefix(L)) → MARK(cons(nil, zWadr(L, prefix(L))))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  MARK
from(x1)  =  from
ACTIVE(x1)  =  x1
mark(x1)  =  x1
cons(x1, x2)  =  cons(x1, x2)
s(x1)  =  s
prefix(x1)  =  prefix(x1)
nil  =  nil
zWadr(x1, x2)  =  x2
active(x1)  =  active
app(x1, x2)  =  app(x1, x2)

Lexicographic path order with status [LPO].
Quasi-Precedence:
[cons2, s, prefix1, active, app2] > [MARK, from]
[cons2, s, prefix1, active, app2] > nil

Status:
active: []
prefix1: [1]
from: []
cons2: [2,1]
MARK: []
app2: [2,1]
s: []
nil: []


The following usable rules [FROCOS05] were oriented:

from(active(X)) → from(X)
from(mark(X)) → from(X)

(59) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))

The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(60) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(from(X)) → ACTIVE(from(mark(X)))
ACTIVE(from(X)) → MARK(cons(X, from(s(X))))
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  x1
from(x1)  =  from(x1)
ACTIVE(x1)  =  ACTIVE
mark(x1)  =  x1
cons(x1, x2)  =  cons
s(x1)  =  s
active(x1)  =  active
nil  =  nil
zWadr(x1, x2)  =  x2
app(x1, x2)  =  app(x1, x2)
prefix(x1)  =  x1

Lexicographic path order with status [LPO].
Quasi-Precedence:
[from1, ACTIVE, s] > cons > active > nil > app2

Status:
active: []
from1: [1]
cons: []
app2: [2,1]
s: []
nil: []
ACTIVE: []


The following usable rules [FROCOS05] were oriented:

cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)

(61) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

active(app(nil, YS)) → mark(YS)
active(app(cons(X, XS), YS)) → mark(cons(X, app(XS, YS)))
active(from(X)) → mark(cons(X, from(s(X))))
active(zWadr(nil, YS)) → mark(nil)
active(zWadr(XS, nil)) → mark(nil)
active(zWadr(cons(X, XS), cons(Y, YS))) → mark(cons(app(Y, cons(X, nil)), zWadr(XS, YS)))
active(prefix(L)) → mark(cons(nil, zWadr(L, prefix(L))))
mark(app(X1, X2)) → active(app(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(cons(X1, X2)) → active(cons(mark(X1), X2))
mark(from(X)) → active(from(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(zWadr(X1, X2)) → active(zWadr(mark(X1), mark(X2)))
mark(prefix(X)) → active(prefix(mark(X)))
app(mark(X1), X2) → app(X1, X2)
app(X1, mark(X2)) → app(X1, X2)
app(active(X1), X2) → app(X1, X2)
app(X1, active(X2)) → app(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
from(mark(X)) → from(X)
from(active(X)) → from(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
zWadr(mark(X1), X2) → zWadr(X1, X2)
zWadr(X1, mark(X2)) → zWadr(X1, X2)
zWadr(active(X1), X2) → zWadr(X1, X2)
zWadr(X1, active(X2)) → zWadr(X1, X2)
prefix(mark(X)) → prefix(X)
prefix(active(X)) → prefix(X)

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

(62) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(63) TRUE