(0) Obligation:

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

incr(nil) → nil
incr(cons(X, L)) → cons(s(X), n__incr(activate(L)))
adx(nil) → nil
adx(cons(X, L)) → incr(cons(X, n__adx(activate(L))))
natsadx(zeros)
zeroscons(0, n__zeros)
head(cons(X, L)) → X
tail(cons(X, L)) → activate(L)
incr(X) → n__incr(X)
adx(X) → n__adx(X)
zerosn__zeros
activate(n__incr(X)) → incr(X)
activate(n__adx(X)) → adx(X)
activate(n__zeros) → zeros
activate(X) → 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:

INCR(cons(X, L)) → ACTIVATE(L)
ADX(cons(X, L)) → INCR(cons(X, n__adx(activate(L))))
ADX(cons(X, L)) → ACTIVATE(L)
NATSADX(zeros)
NATSZEROS
TAIL(cons(X, L)) → ACTIVATE(L)
ACTIVATE(n__incr(X)) → INCR(X)
ACTIVATE(n__adx(X)) → ADX(X)
ACTIVATE(n__zeros) → ZEROS

The TRS R consists of the following rules:

incr(nil) → nil
incr(cons(X, L)) → cons(s(X), n__incr(activate(L)))
adx(nil) → nil
adx(cons(X, L)) → incr(cons(X, n__adx(activate(L))))
natsadx(zeros)
zeroscons(0, n__zeros)
head(cons(X, L)) → X
tail(cons(X, L)) → activate(L)
incr(X) → n__incr(X)
adx(X) → n__adx(X)
zerosn__zeros
activate(n__incr(X)) → incr(X)
activate(n__adx(X)) → adx(X)
activate(n__zeros) → zeros
activate(X) → 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 4 less nodes.

(4) Obligation:

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

ACTIVATE(n__incr(X)) → INCR(X)
INCR(cons(X, L)) → ACTIVATE(L)
ACTIVATE(n__adx(X)) → ADX(X)
ADX(cons(X, L)) → INCR(cons(X, n__adx(activate(L))))
ADX(cons(X, L)) → ACTIVATE(L)

The TRS R consists of the following rules:

incr(nil) → nil
incr(cons(X, L)) → cons(s(X), n__incr(activate(L)))
adx(nil) → nil
adx(cons(X, L)) → incr(cons(X, n__adx(activate(L))))
natsadx(zeros)
zeroscons(0, n__zeros)
head(cons(X, L)) → X
tail(cons(X, L)) → activate(L)
incr(X) → n__incr(X)
adx(X) → n__adx(X)
zerosn__zeros
activate(n__incr(X)) → incr(X)
activate(n__adx(X)) → adx(X)
activate(n__zeros) → zeros
activate(X) → 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.


ADX(cons(X, L)) → ACTIVATE(L)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ACTIVATE(x1)  =  x1
n__incr(x1)  =  x1
INCR(x1)  =  x1
cons(x1, x2)  =  x2
n__adx(x1)  =  n__adx(x1)
ADX(x1)  =  ADX(x1)
activate(x1)  =  x1
incr(x1)  =  x1
adx(x1)  =  adx(x1)
n__zeros  =  n__zeros
zeros  =  zeros
nil  =  nil

Recursive Path Order [RPO].
Precedence:
[nadx1, ADX1, adx1]
[nzeros, zeros]


The following usable rules [FROCOS05] were oriented:

activate(n__incr(X)) → incr(X)
activate(n__adx(X)) → adx(X)
activate(n__zeros) → zeros
activate(X) → X
incr(cons(X, L)) → cons(s(X), n__incr(activate(L)))
incr(nil) → nil
incr(X) → n__incr(X)
adx(nil) → nil
adx(X) → n__adx(X)
adx(cons(X, L)) → incr(cons(X, n__adx(activate(L))))
zeroscons(0, n__zeros)
zerosn__zeros

(6) Obligation:

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

ACTIVATE(n__incr(X)) → INCR(X)
INCR(cons(X, L)) → ACTIVATE(L)
ACTIVATE(n__adx(X)) → ADX(X)
ADX(cons(X, L)) → INCR(cons(X, n__adx(activate(L))))

The TRS R consists of the following rules:

incr(nil) → nil
incr(cons(X, L)) → cons(s(X), n__incr(activate(L)))
adx(nil) → nil
adx(cons(X, L)) → incr(cons(X, n__adx(activate(L))))
natsadx(zeros)
zeroscons(0, n__zeros)
head(cons(X, L)) → X
tail(cons(X, L)) → activate(L)
incr(X) → n__incr(X)
adx(X) → n__adx(X)
zerosn__zeros
activate(n__incr(X)) → incr(X)
activate(n__adx(X)) → adx(X)
activate(n__zeros) → zeros
activate(X) → 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.


ACTIVATE(n__incr(X)) → INCR(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
ACTIVATE(x1)  =  x1
n__incr(x1)  =  n__incr(x1)
INCR(x1)  =  x1
cons(x1, x2)  =  x2
n__adx(x1)  =  n__adx
ADX(x1)  =  ADX

Recursive Path Order [RPO].
Precedence:
[nadx, ADX]


The following usable rules [FROCOS05] were oriented: none

(8) Obligation:

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

INCR(cons(X, L)) → ACTIVATE(L)
ACTIVATE(n__adx(X)) → ADX(X)
ADX(cons(X, L)) → INCR(cons(X, n__adx(activate(L))))

The TRS R consists of the following rules:

incr(nil) → nil
incr(cons(X, L)) → cons(s(X), n__incr(activate(L)))
adx(nil) → nil
adx(cons(X, L)) → incr(cons(X, n__adx(activate(L))))
natsadx(zeros)
zeroscons(0, n__zeros)
head(cons(X, L)) → X
tail(cons(X, L)) → activate(L)
incr(X) → n__incr(X)
adx(X) → n__adx(X)
zerosn__zeros
activate(n__incr(X)) → incr(X)
activate(n__adx(X)) → adx(X)
activate(n__zeros) → zeros
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
 java.lang.AssertionError: Constraint not solved at aprove.DPFramework.DPProblem.Processors.QDPReductionPairProcessor.getResult(QDPReductionPairProcessor.java:426) at aprove.DPFramework.DPProblem.Processors.QDPReductionPairProcessor.getResult(QDPReductionPairProcessor.java:194) at aprove.DPFramework.DPProblem.Processors.QDPReductionPairProcessor.processQDPProblem(QDPReductionPairProcessor.java:166) at aprove.DPFramework.DPProblem.Processors.QDPProblemProcessor.process(QDPProblemProcessor.java:51) at aprove.Strategies.ExecutableStrategies.Executor.execute(Executor.java:153) at aprove.Strategies.ExecutableStrategies.Executor$Runner.wrappedRun(Executor.java:176) at aprove.Strategies.Util.FancyRunner.run(FancyRunner.java:82) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)