(0) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
a__incr(nil) → nil
a__incr(cons(X, L)) → cons(s(mark(X)), incr(L))
a__adx(nil) → nil
a__adx(cons(X, L)) → a__incr(cons(mark(X), adx(L)))
a__nats → a__adx(a__zeros)
a__zeros → cons(0, zeros)
a__head(cons(X, L)) → mark(X)
a__tail(cons(X, L)) → mark(L)
mark(incr(X)) → a__incr(mark(X))
mark(adx(X)) → a__adx(mark(X))
mark(nats) → a__nats
mark(zeros) → a__zeros
mark(head(X)) → a__head(mark(X))
mark(tail(X)) → a__tail(mark(X))
mark(nil) → nil
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__incr(X) → incr(X)
a__adx(X) → adx(X)
a__nats → nats
a__zeros → zeros
a__head(X) → head(X)
a__tail(X) → tail(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__INCR(cons(X, L)) → MARK(X)
A__ADX(cons(X, L)) → A__INCR(cons(mark(X), adx(L)))
A__ADX(cons(X, L)) → MARK(X)
A__NATS → A__ADX(a__zeros)
A__NATS → A__ZEROS
A__HEAD(cons(X, L)) → MARK(X)
A__TAIL(cons(X, L)) → MARK(L)
MARK(incr(X)) → A__INCR(mark(X))
MARK(incr(X)) → MARK(X)
MARK(adx(X)) → A__ADX(mark(X))
MARK(adx(X)) → MARK(X)
MARK(nats) → A__NATS
MARK(zeros) → A__ZEROS
MARK(head(X)) → A__HEAD(mark(X))
MARK(head(X)) → MARK(X)
MARK(tail(X)) → A__TAIL(mark(X))
MARK(tail(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
The TRS R consists of the following rules:
a__incr(nil) → nil
a__incr(cons(X, L)) → cons(s(mark(X)), incr(L))
a__adx(nil) → nil
a__adx(cons(X, L)) → a__incr(cons(mark(X), adx(L)))
a__nats → a__adx(a__zeros)
a__zeros → cons(0, zeros)
a__head(cons(X, L)) → mark(X)
a__tail(cons(X, L)) → mark(L)
mark(incr(X)) → a__incr(mark(X))
mark(adx(X)) → a__adx(mark(X))
mark(nats) → a__nats
mark(zeros) → a__zeros
mark(head(X)) → a__head(mark(X))
mark(tail(X)) → a__tail(mark(X))
mark(nil) → nil
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__incr(X) → incr(X)
a__adx(X) → adx(X)
a__nats → nats
a__zeros → zeros
a__head(X) → head(X)
a__tail(X) → tail(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 2 less nodes.
(4) Obligation:
Q DP problem:
The TRS P consists of the following rules:
MARK(incr(X)) → A__INCR(mark(X))
A__INCR(cons(X, L)) → MARK(X)
MARK(incr(X)) → MARK(X)
MARK(adx(X)) → A__ADX(mark(X))
A__ADX(cons(X, L)) → A__INCR(cons(mark(X), adx(L)))
A__ADX(cons(X, L)) → MARK(X)
MARK(adx(X)) → MARK(X)
MARK(nats) → A__NATS
A__NATS → A__ADX(a__zeros)
MARK(head(X)) → A__HEAD(mark(X))
A__HEAD(cons(X, L)) → MARK(X)
MARK(head(X)) → MARK(X)
MARK(tail(X)) → A__TAIL(mark(X))
A__TAIL(cons(X, L)) → MARK(L)
MARK(tail(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
The TRS R consists of the following rules:
a__incr(nil) → nil
a__incr(cons(X, L)) → cons(s(mark(X)), incr(L))
a__adx(nil) → nil
a__adx(cons(X, L)) → a__incr(cons(mark(X), adx(L)))
a__nats → a__adx(a__zeros)
a__zeros → cons(0, zeros)
a__head(cons(X, L)) → mark(X)
a__tail(cons(X, L)) → mark(L)
mark(incr(X)) → a__incr(mark(X))
mark(adx(X)) → a__adx(mark(X))
mark(nats) → a__nats
mark(zeros) → a__zeros
mark(head(X)) → a__head(mark(X))
mark(tail(X)) → a__tail(mark(X))
mark(nil) → nil
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__incr(X) → incr(X)
a__adx(X) → adx(X)
a__nats → nats
a__zeros → zeros
a__head(X) → head(X)
a__tail(X) → tail(X)
Q is empty.
We have to consider all minimal (P,Q,R)-chains.