(0) Obligation:

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

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

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

(2) Obligation:

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

A__NATSA__ADX(a__zeros)
A__NATSA__ZEROS
A__ADX(cons(X, Y)) → A__INCR(cons(X, adx(Y)))
A__HD(cons(X, Y)) → MARK(X)
A__TL(cons(X, Y)) → MARK(Y)
MARK(nats) → A__NATS
MARK(adx(X)) → A__ADX(mark(X))
MARK(adx(X)) → MARK(X)
MARK(zeros) → A__ZEROS
MARK(incr(X)) → A__INCR(mark(X))
MARK(incr(X)) → MARK(X)
MARK(hd(X)) → A__HD(mark(X))
MARK(hd(X)) → MARK(X)
MARK(tl(X)) → A__TL(mark(X))
MARK(tl(X)) → MARK(X)

The TRS R consists of the following rules:

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(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 1 SCC with 7 less nodes.

(4) Obligation:

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

MARK(adx(X)) → MARK(X)
MARK(incr(X)) → MARK(X)
MARK(hd(X)) → A__HD(mark(X))
A__HD(cons(X, Y)) → MARK(X)
MARK(hd(X)) → MARK(X)
MARK(tl(X)) → A__TL(mark(X))
A__TL(cons(X, Y)) → MARK(Y)
MARK(tl(X)) → MARK(X)

The TRS R consists of the following rules:

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

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

(5) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(hd(X)) → A__HD(mark(X))
A__HD(cons(X, Y)) → MARK(X)
MARK(hd(X)) → MARK(X)
MARK(tl(X)) → A__TL(mark(X))
A__TL(cons(X, Y)) → MARK(Y)
MARK(tl(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  MARK(x1)
adx(x1)  =  x1
incr(x1)  =  x1
hd(x1)  =  hd(x1)
A__HD(x1)  =  x1
mark(x1)  =  mark(x1)
cons(x1, x2)  =  cons(x1, x2)
tl(x1)  =  tl(x1)
A__TL(x1)  =  x1
a__nats  =  a__nats
a__adx(x1)  =  x1
a__zeros  =  a__zeros
0  =  0
zeros  =  zeros
a__incr(x1)  =  x1
s(x1)  =  s
a__hd(x1)  =  a__hd(x1)
a__tl(x1)  =  a__tl(x1)
nats  =  nats

Lexicographic path order with status [LPO].
Quasi-Precedence:
[anats, nats] > [hd1, mark1, tl1, azeros, ahd1, atl1] > cons2 > [MARK1, s]
[anats, nats] > [hd1, mark1, tl1, azeros, ahd1, atl1] > 0 > [MARK1, s]
[anats, nats] > [hd1, mark1, tl1, azeros, ahd1, atl1] > zeros > [MARK1, s]

Status:
MARK1: [1]
hd1: [1]
mark1: [1]
cons2: [2,1]
tl1: [1]
anats: []
azeros: []
0: []
zeros: []
s: []
ahd1: [1]
atl1: [1]
nats: []


The following usable rules [FROCOS05] were oriented:

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

(6) Obligation:

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

MARK(adx(X)) → MARK(X)
MARK(incr(X)) → MARK(X)

The TRS R consists of the following rules:

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

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

(7) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(adx(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  MARK(x1)
adx(x1)  =  adx(x1)
incr(x1)  =  x1
a__nats  =  a__nats
a__adx(x1)  =  a__adx(x1)
a__zeros  =  a__zeros
cons(x1, x2)  =  cons(x1, x2)
0  =  0
zeros  =  zeros
a__incr(x1)  =  x1
s(x1)  =  x1
a__hd(x1)  =  a__hd(x1)
mark(x1)  =  mark(x1)
a__tl(x1)  =  a__tl(x1)
nats  =  nats
hd(x1)  =  hd(x1)
tl(x1)  =  tl(x1)

Lexicographic path order with status [LPO].
Quasi-Precedence:
MARK1 > [adx1, aadx1, cons2]
[ahd1, mark1, atl1, hd1, tl1] > [anats, nats] > azeros > 0 > [adx1, aadx1, cons2]
[ahd1, mark1, atl1, hd1, tl1] > [anats, nats] > azeros > zeros > [adx1, aadx1, cons2]

Status:
MARK1: [1]
adx1: [1]
anats: []
aadx1: [1]
azeros: []
cons2: [1,2]
0: []
zeros: []
ahd1: [1]
mark1: [1]
atl1: [1]
nats: []
hd1: [1]
tl1: [1]


The following usable rules [FROCOS05] were oriented:

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

(8) Obligation:

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

MARK(incr(X)) → MARK(X)

The TRS R consists of the following rules:

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

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

(9) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(incr(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  MARK(x1)
incr(x1)  =  incr(x1)
a__nats  =  a__nats
a__adx(x1)  =  a__adx(x1)
a__zeros  =  a__zeros
cons(x1, x2)  =  cons(x1, x2)
0  =  0
zeros  =  zeros
a__incr(x1)  =  a__incr(x1)
s(x1)  =  x1
adx(x1)  =  adx(x1)
a__hd(x1)  =  a__hd(x1)
mark(x1)  =  mark(x1)
a__tl(x1)  =  a__tl(x1)
nats  =  nats
hd(x1)  =  hd(x1)
tl(x1)  =  tl(x1)

Lexicographic path order with status [LPO].
Quasi-Precedence:
MARK1 > [incr1, cons2, aincr1]
[ahd1, mark1, atl1, hd1, tl1] > anats > aadx1 > adx1 > [incr1, cons2, aincr1]
[ahd1, mark1, atl1, hd1, tl1] > anats > azeros > 0 > [incr1, cons2, aincr1]
[ahd1, mark1, atl1, hd1, tl1] > anats > azeros > zeros > [incr1, cons2, aincr1]
[ahd1, mark1, atl1, hd1, tl1] > anats > nats > [incr1, cons2, aincr1]

Status:
MARK1: [1]
incr1: [1]
anats: []
aadx1: [1]
azeros: []
cons2: [1,2]
0: []
zeros: []
aincr1: [1]
adx1: [1]
ahd1: [1]
mark1: [1]
atl1: [1]
nats: []
hd1: [1]
tl1: [1]


The following usable rules [FROCOS05] were oriented:

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

(10) Obligation:

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

a__natsa__adx(a__zeros)
a__zeroscons(0, zeros)
a__incr(cons(X, Y)) → cons(s(X), incr(Y))
a__adx(cons(X, Y)) → a__incr(cons(X, adx(Y)))
a__hd(cons(X, Y)) → mark(X)
a__tl(cons(X, Y)) → mark(Y)
mark(nats) → a__nats
mark(adx(X)) → a__adx(mark(X))
mark(zeros) → a__zeros
mark(incr(X)) → a__incr(mark(X))
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
mark(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__natsnats
a__adx(X) → adx(X)
a__zeroszeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)

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

(11) PisEmptyProof (EQUIVALENT transformation)

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

(12) TRUE