(0) Obligation:

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

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(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__TERMS(N) → A__SQR(mark(N))
A__TERMS(N) → MARK(N)
A__SQR(s(X)) → A__ADD(a__sqr(mark(X)), a__dbl(mark(X)))
A__SQR(s(X)) → A__SQR(mark(X))
A__SQR(s(X)) → MARK(X)
A__SQR(s(X)) → A__DBL(mark(X))
A__DBL(s(X)) → A__DBL(mark(X))
A__DBL(s(X)) → MARK(X)
A__ADD(0, X) → MARK(X)
A__ADD(s(X), Y) → A__ADD(mark(X), mark(Y))
A__ADD(s(X), Y) → MARK(X)
A__ADD(s(X), Y) → MARK(Y)
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
A__HALF(s(s(X))) → A__HALF(mark(X))
A__HALF(s(s(X))) → MARK(X)
A__HALF(dbl(X)) → MARK(X)
MARK(terms(X)) → A__TERMS(mark(X))
MARK(terms(X)) → MARK(X)
MARK(sqr(X)) → A__SQR(mark(X))
MARK(sqr(X)) → MARK(X)
MARK(add(X1, X2)) → A__ADD(mark(X1), mark(X2))
MARK(add(X1, X2)) → MARK(X1)
MARK(add(X1, X2)) → MARK(X2)
MARK(dbl(X)) → A__DBL(mark(X))
MARK(dbl(X)) → MARK(X)
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
MARK(first(X1, X2)) → MARK(X1)
MARK(first(X1, X2)) → MARK(X2)
MARK(half(X)) → A__HALF(mark(X))
MARK(half(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(recip(X)) → MARK(X)
MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

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

(3) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


A__TERMS(N) → MARK(N)
A__SQR(s(X)) → A__ADD(a__sqr(mark(X)), a__dbl(mark(X)))
A__SQR(s(X)) → A__SQR(mark(X))
A__SQR(s(X)) → MARK(X)
A__SQR(s(X)) → A__DBL(mark(X))
A__DBL(s(X)) → A__DBL(mark(X))
A__DBL(s(X)) → MARK(X)
A__ADD(0, X) → MARK(X)
A__ADD(s(X), Y) → A__ADD(mark(X), mark(Y))
A__ADD(s(X), Y) → MARK(X)
A__ADD(s(X), Y) → MARK(Y)
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
A__HALF(s(s(X))) → A__HALF(mark(X))
A__HALF(s(s(X))) → MARK(X)
A__HALF(dbl(X)) → MARK(X)
MARK(terms(X)) → MARK(X)
MARK(sqr(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X1)
MARK(add(X1, X2)) → MARK(X2)
MARK(dbl(X)) → A__DBL(mark(X))
MARK(dbl(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X1)
MARK(first(X1, X2)) → MARK(X2)
MARK(s(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
A__TERMS(x1)  =  A__TERMS(x1)
A__SQR(x1)  =  A__SQR(x1)
mark(x1)  =  x1
MARK(x1)  =  x1
s(x1)  =  s(x1)
A__ADD(x1, x2)  =  A__ADD(x1, x2)
a__sqr(x1)  =  a__sqr(x1)
a__dbl(x1)  =  a__dbl(x1)
A__DBL(x1)  =  A__DBL(x1)
0  =  0
A__FIRST(x1, x2)  =  A__FIRST(x1, x2)
cons(x1, x2)  =  x1
A__HALF(x1)  =  x1
dbl(x1)  =  dbl(x1)
terms(x1)  =  terms(x1)
sqr(x1)  =  sqr(x1)
add(x1, x2)  =  add(x1, x2)
first(x1, x2)  =  first(x1, x2)
half(x1)  =  x1
recip(x1)  =  x1
a__terms(x1)  =  a__terms(x1)
a__add(x1, x2)  =  a__add(x1, x2)
a__first(x1, x2)  =  a__first(x1, x2)
nil  =  nil
a__half(x1)  =  x1

Recursive path order with status [RPO].
Quasi-Precedence:
[ATERMS1, ASQR1, asqr1, adbl1, dbl1, terms1, sqr1, aterms1] > [AADD2, add2, aadd2] > s1 > ADBL1
[ATERMS1, ASQR1, asqr1, adbl1, dbl1, terms1, sqr1, aterms1] > [AADD2, add2, aadd2] > s1 > [AFIRST2, first2, afirst2]
[ATERMS1, ASQR1, asqr1, adbl1, dbl1, terms1, sqr1, aterms1] > 0 > nil

Status:
ATERMS1: [1]
ASQR1: [1]
s1: [1]
AADD2: [2,1]
asqr1: [1]
adbl1: [1]
ADBL1: [1]
0: multiset
AFIRST2: [1,2]
dbl1: [1]
terms1: [1]
sqr1: [1]
add2: [2,1]
first2: [1,2]
aterms1: [1]
aadd2: [2,1]
afirst2: [1,2]
nil: multiset


The following usable rules [FROCOS05] were oriented:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

(4) Obligation:

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

A__TERMS(N) → A__SQR(mark(N))
MARK(terms(X)) → A__TERMS(mark(X))
MARK(sqr(X)) → A__SQR(mark(X))
MARK(add(X1, X2)) → A__ADD(mark(X1), mark(X2))
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
MARK(half(X)) → A__HALF(mark(X))
MARK(half(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(recip(X)) → MARK(X)

The TRS R consists of the following rules:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

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

(5) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 6 less nodes.

(6) Obligation:

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

MARK(cons(X1, X2)) → MARK(X1)
MARK(half(X)) → MARK(X)
MARK(recip(X)) → MARK(X)

The TRS R consists of the following rules:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(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(half(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  x1
cons(x1, x2)  =  x1
half(x1)  =  half(x1)
recip(x1)  =  x1
a__terms(x1)  =  x1
a__sqr(x1)  =  x1
mark(x1)  =  x1
terms(x1)  =  x1
s(x1)  =  x1
0  =  0
a__add(x1, x2)  =  x2
a__dbl(x1)  =  x1
a__first(x1, x2)  =  a__first(x1, x2)
nil  =  nil
first(x1, x2)  =  first(x1, x2)
a__half(x1)  =  a__half(x1)
dbl(x1)  =  x1
sqr(x1)  =  x1
add(x1, x2)  =  x2

Recursive path order with status [RPO].
Quasi-Precedence:
[half1, ahalf1] > nil
0 > nil
[afirst2, first2] > nil

Status:
half1: multiset
0: multiset
afirst2: [1,2]
nil: multiset
first2: [1,2]
ahalf1: multiset


The following usable rules [FROCOS05] were oriented:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

(8) Obligation:

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

MARK(cons(X1, X2)) → MARK(X1)
MARK(recip(X)) → MARK(X)

The TRS R consists of the following rules:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(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(cons(X1, X2)) → MARK(X1)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  MARK(x1)
cons(x1, x2)  =  cons(x1)
recip(x1)  =  x1
a__terms(x1)  =  a__terms
a__sqr(x1)  =  a__sqr
mark(x1)  =  mark(x1)
terms(x1)  =  terms
s(x1)  =  s
0  =  0
a__add(x1, x2)  =  a__add(x2)
a__dbl(x1)  =  a__dbl(x1)
a__first(x1, x2)  =  a__first(x1, x2)
nil  =  nil
first(x1, x2)  =  first(x1, x2)
a__half(x1)  =  x1
dbl(x1)  =  dbl(x1)
sqr(x1)  =  sqr
add(x1, x2)  =  add(x2)
half(x1)  =  x1

Recursive path order with status [RPO].
Quasi-Precedence:
[aterms, mark1, aadd1, adbl1, afirst2, first2, dbl1, add1] > [MARK1, cons1] > [asqr, s, 0, nil, sqr]
[aterms, mark1, aadd1, adbl1, afirst2, first2, dbl1, add1] > terms > [asqr, s, 0, nil, sqr]

Status:
MARK1: multiset
cons1: multiset
aterms: multiset
asqr: multiset
mark1: multiset
terms: []
s: multiset
0: multiset
aadd1: multiset
adbl1: multiset
afirst2: multiset
nil: multiset
first2: multiset
dbl1: multiset
sqr: multiset
add1: multiset


The following usable rules [FROCOS05] were oriented:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

(10) Obligation:

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

MARK(recip(X)) → MARK(X)

The TRS R consists of the following rules:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

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

(11) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(recip(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)
recip(x1)  =  recip(x1)
a__terms(x1)  =  x1
cons(x1, x2)  =  cons
a__sqr(x1)  =  a__sqr
mark(x1)  =  mark(x1)
terms(x1)  =  x1
s(x1)  =  s
0  =  0
a__add(x1, x2)  =  a__add(x1, x2)
a__dbl(x1)  =  a__dbl(x1)
a__first(x1, x2)  =  a__first(x1, x2)
nil  =  nil
first(x1, x2)  =  first(x1, x2)
a__half(x1)  =  a__half(x1)
dbl(x1)  =  dbl(x1)
sqr(x1)  =  sqr
add(x1, x2)  =  add(x1, x2)
half(x1)  =  half(x1)

Recursive path order with status [RPO].
Quasi-Precedence:
[asqr, s, sqr] > [mark1, aadd2, adbl1, dbl1, add2] > [MARK1, recip1] > [cons, nil, half1]
[asqr, s, sqr] > [mark1, aadd2, adbl1, dbl1, add2] > [0, ahalf1] > [cons, nil, half1]
[asqr, s, sqr] > [mark1, aadd2, adbl1, dbl1, add2] > [afirst2, first2] > [cons, nil, half1]

Status:
MARK1: multiset
recip1: multiset
cons: multiset
asqr: []
mark1: multiset
s: []
0: multiset
aadd2: multiset
adbl1: multiset
afirst2: [2,1]
nil: multiset
first2: [2,1]
ahalf1: [1]
dbl1: multiset
sqr: []
add2: multiset
half1: multiset


The following usable rules [FROCOS05] were oriented:

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

(12) Obligation:

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

a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)

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

(13) PisEmptyProof (EQUIVALENT transformation)

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

(14) TRUE