(0) Obligation:

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

natscons(0, n__incr(nats))
pairscons(0, n__incr(odds))
oddsincr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
head(cons(X, XS)) → X
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
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:

NATSNATS
PAIRSODDS
ODDSINCR(pairs)
ODDSPAIRS
INCR(cons(X, XS)) → ACTIVATE(XS)
TAIL(cons(X, XS)) → ACTIVATE(XS)
ACTIVATE(n__incr(X)) → INCR(X)

The TRS R consists of the following rules:

natscons(0, n__incr(nats))
pairscons(0, n__incr(odds))
oddsincr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
head(cons(X, XS)) → X
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
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 3 SCCs with 2 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

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

ACTIVATE(n__incr(X)) → INCR(X)
INCR(cons(X, XS)) → ACTIVATE(XS)

The TRS R consists of the following rules:

natscons(0, n__incr(nats))
pairscons(0, n__incr(odds))
oddsincr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
head(cons(X, XS)) → X
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → 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.


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

Lexicographic Path Order [LPO].
Precedence:
cons1 > ACTIVATE1


The following usable rules [FROCOS05] were oriented: none

(7) Obligation:

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

natscons(0, n__incr(nats))
pairscons(0, n__incr(odds))
oddsincr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
head(cons(X, XS)) → X
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X

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

(8) PisEmptyProof (EQUIVALENT transformation)

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

(9) TRUE

(10) Obligation:

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

ODDSPAIRS
PAIRSODDS

The TRS R consists of the following rules:

natscons(0, n__incr(nats))
pairscons(0, n__incr(odds))
oddsincr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
head(cons(X, XS)) → X
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X

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

(11) Obligation:

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

NATSNATS

The TRS R consists of the following rules:

natscons(0, n__incr(nats))
pairscons(0, n__incr(odds))
oddsincr(pairs)
incr(cons(X, XS)) → cons(s(X), n__incr(activate(XS)))
head(cons(X, XS)) → X
tail(cons(X, XS)) → activate(XS)
incr(X) → n__incr(X)
activate(n__incr(X)) → incr(X)
activate(X) → X

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