(0) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
a__nats → a__adx(a__zeros)
a__zeros → cons(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__nats → nats
a__adx(X) → adx(X)
a__zeros → zeros
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)
Q is empty.
(1) QTRSRRRProof (EQUIVALENT transformation)
Used ordering:
Recursive path order with status [RPO].
Quasi-Precedence:
[anats, nats] > aadx1 > [aincr1, incr1] > [cons2, s1]
[anats, nats] > aadx1 > adx1
[anats, nats] > azeros > [cons2, s1]
[anats, nats] > azeros > 0
[anats, nats] > azeros > zeros
[ahd1, mark1, atl1, hd1, tl1] > aadx1 > [aincr1, incr1] > [cons2, s1]
[ahd1, mark1, atl1, hd1, tl1] > aadx1 > adx1
[ahd1, mark1, atl1, hd1, tl1] > azeros > [cons2, s1]
[ahd1, mark1, atl1, hd1, tl1] > azeros > 0
[ahd1, mark1, atl1, hd1, tl1] > azeros > zeros
Status:
ahd1: [1]
aadx1: multiset
atl1: [1]
azeros: multiset
mark1: [1]
0: multiset
hd1: [1]
cons2: [1,2]
anats: multiset
adx1: multiset
incr1: [1]
aincr1: [1]
zeros: multiset
tl1: [1]
s1: [1]
nats: multiset
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
a__nats → a__adx(a__zeros)
a__zeros → cons(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(cons(X1, X2)) → cons(X1, X2)
mark(0) → 0
mark(s(X)) → s(X)
a__adx(X) → adx(X)
a__zeros → zeros
(2) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
a__nats → nats
a__incr(X) → incr(X)
a__hd(X) → hd(X)
a__tl(X) → tl(X)
Q is empty.
(3) QTRSRRRProof (EQUIVALENT transformation)
Used ordering:
Recursive path order with status [RPO].
Quasi-Precedence:
mark1 > [hd1, ahd1] > incr1
mark1 > atl1 > tl1 > incr1
anats > nats > incr1
aincr1 > incr1
Status:
ahd1: multiset
anats: multiset
atl1: multiset
aincr1: [1]
incr1: multiset
tl1: multiset
mark1: [1]
nats: multiset
hd1: multiset
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
mark(hd(X)) → a__hd(mark(X))
mark(tl(X)) → a__tl(mark(X))
a__nats → nats
a__incr(X) → incr(X)
a__tl(X) → tl(X)
(4) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
a__hd(X) → hd(X)
Q is empty.
(5) QTRSRRRProof (EQUIVALENT transformation)
Used ordering:
Recursive path order with status [RPO].
Quasi-Precedence:
ahd1 > hd1
Status:
ahd1: multiset
hd1: multiset
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
a__hd(X) → hd(X)
(6) Obligation:
Q restricted rewrite system:
R is empty.
Q is empty.
(7) RisEmptyProof (EQUIVALENT transformation)
The TRS R is empty. Hence, termination is trivially proven.
(8) TRUE