R
↳Dependency Pair Analysis
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(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)
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)
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)
TOP(mark(X)) -> TOP(proper(X))
TOP(mark(X)) -> PROPER(X)
TOP(ok(X)) -> TOP(active(X))
TOP(ok(X)) -> ACTIVE(X)
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
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)
CONS(ok(X1), ok(X2)) -> CONS(X1, X2)
CONS(mark(X1), X2) -> CONS(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
RECIP(ok(X)) -> RECIP(X)
RECIP(mark(X)) -> RECIP(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
SQR(ok(X)) -> SQR(X)
SQR(mark(X)) -> SQR(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TERMS(ok(X)) -> TERMS(X)
TERMS(mark(X)) -> TERMS(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
S(ok(X)) -> S(X)
S(mark(X)) -> S(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ADD(ok(X1), ok(X2)) -> ADD(X1, X2)
ADD(X1, mark(X2)) -> ADD(X1, X2)
ADD(mark(X1), X2) -> ADD(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
DBL(ok(X)) -> DBL(X)
DBL(mark(X)) -> DBL(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
FIRST(ok(X1), ok(X2)) -> FIRST(X1, X2)
FIRST(X1, mark(X2)) -> FIRST(X1, X2)
FIRST(mark(X1), X2) -> FIRST(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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
ACTIVE(first(X1, X2)) -> ACTIVE(X2)
ACTIVE(first(X1, X2)) -> ACTIVE(X1)
ACTIVE(dbl(X)) -> ACTIVE(X)
ACTIVE(add(X1, X2)) -> ACTIVE(X2)
ACTIVE(add(X1, X2)) -> ACTIVE(X1)
ACTIVE(s(X)) -> ACTIVE(X)
ACTIVE(sqr(X)) -> ACTIVE(X)
ACTIVE(recip(X)) -> ACTIVE(X)
ACTIVE(cons(X1, X2)) -> ACTIVE(X1)
ACTIVE(terms(X)) -> ACTIVE(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
PROPER(first(X1, X2)) -> PROPER(X2)
PROPER(first(X1, X2)) -> PROPER(X1)
PROPER(dbl(X)) -> PROPER(X)
PROPER(add(X1, X2)) -> PROPER(X2)
PROPER(add(X1, X2)) -> PROPER(X1)
PROPER(s(X)) -> PROPER(X)
PROPER(sqr(X)) -> PROPER(X)
PROPER(recip(X)) -> PROPER(X)
PROPER(cons(X1, X2)) -> PROPER(X2)
PROPER(cons(X1, X2)) -> PROPER(X1)
PROPER(terms(X)) -> PROPER(X)
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))
TOP(ok(X)) -> TOP(active(X))
TOP(mark(X)) -> TOP(proper(X))
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(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))
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))
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)
top(mark(X)) -> top(proper(X))
top(ok(X)) -> top(active(X))