Term Rewriting System R:
[N, X, Y, Z, X1, X2]
active(terms(N)) -> mark(cons(recip(sqr(N)), terms(s(N))))
active(sqr(0)) -> mark(0)
active(sqr(s(X))) -> mark(s(add(sqr(X), dbl(X))))
active(dbl(0)) -> mark(0)
active(dbl(s(X))) -> mark(s(s(dbl(X))))
active(add(0, X)) -> mark(X)
active(add(s(X), Y)) -> mark(s(add(X, Y)))
active(first(0, X)) -> mark(nil)
active(first(s(X), cons(Y, Z))) -> mark(cons(Y, first(X, Z)))
active(half(0)) -> mark(0)
active(half(s(0))) -> mark(0)
active(half(s(s(X)))) -> mark(s(half(X)))
active(half(dbl(X))) -> mark(X)
active(terms(X)) -> terms(active(X))
active(cons(X1, X2)) -> cons(active(X1), X2)
active(recip(X)) -> recip(active(X))
active(sqr(X)) -> sqr(active(X))
active(s(X)) -> s(active(X))
active(add(X1, X2)) -> add(active(X1), X2)
active(add(X1, X2)) -> add(X1, active(X2))
active(dbl(X)) -> dbl(active(X))
active(first(X1, X2)) -> first(active(X1), X2)
active(first(X1, X2)) -> first(X1, active(X2))
active(half(X)) -> half(active(X))
terms(mark(X)) -> mark(terms(X))
terms(ok(X)) -> ok(terms(X))
cons(mark(X1), X2) -> mark(cons(X1, X2))
cons(ok(X1), ok(X2)) -> ok(cons(X1, X2))
recip(mark(X)) -> mark(recip(X))
recip(ok(X)) -> ok(recip(X))
sqr(mark(X)) -> mark(sqr(X))
sqr(ok(X)) -> ok(sqr(X))
s(mark(X)) -> mark(s(X))
s(ok(X)) -> ok(s(X))
add(mark(X1), X2) -> mark(add(X1, X2))
add(X1, mark(X2)) -> mark(add(X1, X2))
add(ok(X1), ok(X2)) -> ok(add(X1, X2))
dbl(mark(X)) -> mark(dbl(X))
dbl(ok(X)) -> ok(dbl(X))
first(mark(X1), X2) -> mark(first(X1, X2))
first(X1, mark(X2)) -> mark(first(X1, X2))
first(ok(X1), ok(X2)) -> ok(first(X1, X2))
half(mark(X)) -> mark(half(X))
half(ok(X)) -> ok(half(X))
proper(terms(X)) -> terms(proper(X))
proper(cons(X1, X2)) -> cons(proper(X1), proper(X2))
proper(recip(X)) -> recip(proper(X))
proper(sqr(X)) -> sqr(proper(X))
proper(s(X)) -> s(proper(X))
proper(0) -> ok(0)
proper(add(X1, X2)) -> add(proper(X1), proper(X2))
proper(dbl(X)) -> dbl(proper(X))
proper(first(X1, X2)) -> first(proper(X1), proper(X2))
proper(nil) -> ok(nil)
proper(half(X)) -> half(proper(X))
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

ACTIVE(terms(N)) -> CONS(recip(sqr(N)), terms(s(N)))
ACTIVE(terms(N)) -> RECIP(sqr(N))
ACTIVE(terms(N)) -> SQR(N)
ACTIVE(terms(N)) -> TERMS(s(N))
ACTIVE(terms(N)) -> S(N)
ACTIVE(sqr(s(X))) -> S(add(sqr(X), dbl(X)))
ACTIVE(sqr(s(X))) -> ADD(sqr(X), dbl(X))
ACTIVE(sqr(s(X))) -> SQR(X)
ACTIVE(sqr(s(X))) -> DBL(X)
ACTIVE(dbl(s(X))) -> S(s(dbl(X)))
ACTIVE(dbl(s(X))) -> S(dbl(X))
ACTIVE(dbl(s(X))) -> DBL(X)
ACTIVE(add(s(X), Y)) -> S(add(X, Y))
ACTIVE(add(s(X), Y)) -> ADD(X, Y)
ACTIVE(first(s(X), cons(Y, Z))) -> CONS(Y, first(X, Z))
ACTIVE(first(s(X), cons(Y, Z))) -> FIRST(X, Z)
ACTIVE(half(s(s(X)))) -> S(half(X))
ACTIVE(half(s(s(X)))) -> HALF(X)
ACTIVE(terms(X)) -> TERMS(active(X))
ACTIVE(terms(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> CONS(active(X1), X2)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(recip(X)) -> RECIP(active(X))
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> SQR(active(X))
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(s(X)) -> S(active(X))
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ADD(active(X1), X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(add(X1, X2)) -> ADD(X1, active(X2))
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(dbl(X)) -> DBL(active(X))
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(first(X1, X2)) -> FIRST(active(X1), X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(first(X1, X2)) -> FIRST(X1, active(X2))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(half(X)) -> HALF(active(X))
ACTIVE(half(X)) -> ACTIVE(X)
TERMS(mark(X)) -> TERMS(X)
TERMS(ok(X)) -> TERMS(X)
CONS(mark(X1), X2) -> CONS(X1, X2)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
RECIP(mark(X)) -> RECIP(X)
RECIP(ok(X)) -> RECIP(X)
SQR(mark(X)) -> SQR(X)
SQR(ok(X)) -> SQR(X)
S(mark(X)) -> S(X)
S(ok(X)) -> S(X)
ADD(mark(X1), X2) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
DBL(mark(X)) -> DBL(X)
DBL(ok(X)) -> DBL(X)
FIRST(mark(X1), X2) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
HALF(mark(X)) -> HALF(X)
HALF(ok(X)) -> HALF(X)
PROPER(terms(X)) -> TERMS(proper(X))
PROPER(terms(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> CONS(proper(X1), proper(X2))
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(recip(X)) -> RECIP(proper(X))
PROPER(recip(X)) -> PROPER(X)
PROPER(sqr(X)) -> SQR(proper(X))
PROPER(sqr(X)) -> PROPER(X)
PROPER(s(X)) -> S(proper(X))
PROPER(s(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> ADD(proper(X1), proper(X2))
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(dbl(X)) -> DBL(proper(X))
PROPER(dbl(X)) -> PROPER(X)
PROPER(first(X1, X2)) -> FIRST(proper(X1), proper(X2))
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(half(X)) -> HALF(proper(X))
PROPER(half(X)) -> PROPER(X)
TOP(mark(X)) -> TOP(proper(X))
TOP(mark(X)) -> PROPER(X)
TOP(ok(X)) -> TOP(active(X))
TOP(ok(X)) -> ACTIVE(X)

Furthermore, R contains 12 SCCs.


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:


   R
DPs
       →DP Problem 1
Remaining Obligation(s)
       →DP Problem 2
Remaining Obligation(s)
       →DP Problem 3
Remaining Obligation(s)
       →DP Problem 4
Remaining Obligation(s)
       →DP Problem 5
Remaining Obligation(s)
       →DP Problem 6
Remaining Obligation(s)
       →DP Problem 7
Remaining Obligation(s)
       →DP Problem 8
Remaining Obligation(s)
       →DP Problem 9
Remaining Obligation(s)
       →DP Problem 10
Remaining Obligation(s)
       →DP Problem 11
Remaining Obligation(s)
       →DP Problem 12
Remaining Obligation(s)




The following remains to be proven:

Termination of R could not be shown.
Duration:
0:01 minutes