TIMEOUT
The TRS could not be proven terminating. The proof attempt took 60002 ms.
Problem 1 was processed with processor DependencyGraph (4182ms). | Problem 2 was processed with processor SubtermCriterion (5ms). | | Problem 11 was processed with processor ReductionPairSAT (79ms). | | | Problem 15 was processed with processor ReductionPairSAT (65ms). | Problem 3 was processed with processor SubtermCriterion (1ms). | | Problem 12 was processed with processor ReductionPairSAT (49ms). | | | Problem 16 was processed with processor ReductionPairSAT (29ms). | Problem 4 was processed with processor SubtermCriterion (1ms). | Problem 5 was processed with processor SubtermCriterion (0ms). | Problem 6 was processed with processor SubtermCriterion (1ms). | Problem 7 was processed with processor SubtermCriterion (1ms). | | Problem 13 was processed with processor ReductionPairSAT (74ms). | | | Problem 17 was processed with processor ReductionPairSAT (26ms). | Problem 8 was processed with processor SubtermCriterion (1ms). | Problem 9 was processed with processor ReductionPairSAT (15182ms). | | Problem 14 was processed with processor ReductionPairSAT (14044ms). | | | Problem 18 was processed with processor ReductionPairSAT (12371ms). | | | | Problem 19 remains open; application of the following processors failed [DependencyGraph (355ms), ReductionPairSAT (timeout)]. | Problem 10 was processed with processor SubtermCriterion (1ms).
mark#(cons(X1, X2)) | → | active#(cons(mark(X1), X2)) | active#(first(0, X)) | → | mark#(nil) | |
active#(add(s(X), Y)) | → | mark#(s(add(X, Y))) | mark#(sqr(X)) | → | active#(sqr(mark(X))) | |
active#(dbl(s(X))) | → | mark#(s(s(dbl(X)))) | mark#(recip(X)) | → | mark#(X) | |
active#(sqr(0)) | → | mark#(0) | active#(first(s(X), cons(Y, Z))) | → | mark#(cons(Y, first(X, Z))) | |
active#(sqr(s(X))) | → | mark#(s(add(sqr(X), dbl(X)))) | mark#(add(X1, X2)) | → | mark#(X2) | |
mark#(add(X1, X2)) | → | active#(add(mark(X1), mark(X2))) | mark#(add(X1, X2)) | → | mark#(X1) | |
mark#(first(X1, X2)) | → | mark#(X2) | mark#(cons(X1, X2)) | → | mark#(X1) | |
mark#(first(X1, X2)) | → | active#(first(mark(X1), mark(X2))) | mark#(dbl(X)) | → | active#(dbl(mark(X))) | |
active#(add(0, X)) | → | mark#(X) | mark#(terms(X)) | → | active#(terms(mark(X))) | |
mark#(dbl(X)) | → | mark#(X) | mark#(s(X)) | → | active#(s(X)) | |
mark#(terms(X)) | → | mark#(X) | mark#(sqr(X)) | → | mark#(X) | |
active#(dbl(0)) | → | mark#(0) | mark#(first(X1, X2)) | → | mark#(X1) | |
active#(terms(N)) | → | mark#(cons(recip(sqr(N)), terms(s(N)))) |
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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
active#(first(0, X)) | → | mark#(nil) | mark#(cons(X1, X2)) | → | active#(cons(mark(X1), X2)) | |
add#(X1, mark(X2)) | → | add#(X1, X2) | active#(add(s(X), Y)) | → | mark#(s(add(X, Y))) | |
active#(sqr(s(X))) | → | s#(add(sqr(X), dbl(X))) | recip#(active(X)) | → | recip#(X) | |
active#(dbl(s(X))) | → | s#(dbl(X)) | active#(terms(N)) | → | terms#(s(N)) | |
active#(first(s(X), cons(Y, Z))) | → | cons#(Y, first(X, Z)) | first#(X1, active(X2)) | → | first#(X1, X2) | |
terms#(mark(X)) | → | terms#(X) | mark#(recip(X)) | → | mark#(X) | |
active#(first(s(X), cons(Y, Z))) | → | mark#(cons(Y, first(X, Z))) | mark#(dbl(X)) | → | dbl#(mark(X)) | |
mark#(add(X1, X2)) | → | mark#(X2) | mark#(add(X1, X2)) | → | active#(add(mark(X1), mark(X2))) | |
active#(dbl(s(X))) | → | dbl#(X) | first#(mark(X1), X2) | → | first#(X1, X2) | |
mark#(add(X1, X2)) | → | mark#(X1) | mark#(recip(X)) | → | active#(recip(mark(X))) | |
mark#(recip(X)) | → | recip#(mark(X)) | active#(sqr(s(X))) | → | dbl#(X) | |
active#(dbl(s(X))) | → | s#(s(dbl(X))) | mark#(cons(X1, X2)) | → | mark#(X1) | |
terms#(active(X)) | → | terms#(X) | active#(sqr(s(X))) | → | sqr#(X) | |
mark#(dbl(X)) | → | active#(dbl(mark(X))) | active#(add(0, X)) | → | mark#(X) | |
active#(terms(N)) | → | sqr#(N) | add#(mark(X1), X2) | → | add#(X1, X2) | |
mark#(terms(X)) | → | active#(terms(mark(X))) | mark#(s(X)) | → | active#(s(X)) | |
cons#(X1, active(X2)) | → | cons#(X1, X2) | mark#(sqr(X)) | → | mark#(X) | |
active#(add(s(X), Y)) | → | add#(X, Y) | mark#(add(X1, X2)) | → | add#(mark(X1), mark(X2)) | |
first#(active(X1), X2) | → | first#(X1, X2) | active#(sqr(s(X))) | → | add#(sqr(X), dbl(X)) | |
active#(dbl(0)) | → | mark#(0) | add#(active(X1), X2) | → | add#(X1, X2) | |
mark#(first(X1, X2)) | → | mark#(X1) | active#(terms(N)) | → | mark#(cons(recip(sqr(N)), terms(s(N)))) | |
mark#(sqr(X)) | → | sqr#(mark(X)) | cons#(mark(X1), X2) | → | cons#(X1, X2) | |
mark#(sqr(X)) | → | active#(sqr(mark(X))) | active#(dbl(s(X))) | → | mark#(s(s(dbl(X)))) | |
active#(first(s(X), cons(Y, Z))) | → | first#(X, Z) | active#(sqr(0)) | → | mark#(0) | |
mark#(nil) | → | active#(nil) | active#(add(s(X), Y)) | → | s#(add(X, Y)) | |
active#(sqr(s(X))) | → | mark#(s(add(sqr(X), dbl(X)))) | sqr#(active(X)) | → | sqr#(X) | |
add#(X1, active(X2)) | → | add#(X1, X2) | cons#(X1, mark(X2)) | → | cons#(X1, X2) | |
mark#(first(X1, X2)) | → | first#(mark(X1), mark(X2)) | mark#(cons(X1, X2)) | → | cons#(mark(X1), X2) | |
first#(X1, mark(X2)) | → | first#(X1, X2) | mark#(0) | → | active#(0) | |
mark#(first(X1, X2)) | → | mark#(X2) | mark#(first(X1, X2)) | → | active#(first(mark(X1), mark(X2))) | |
active#(terms(N)) | → | cons#(recip(sqr(N)), terms(s(N))) | cons#(active(X1), X2) | → | cons#(X1, X2) | |
dbl#(mark(X)) | → | dbl#(X) | active#(terms(N)) | → | recip#(sqr(N)) | |
mark#(dbl(X)) | → | mark#(X) | mark#(terms(X)) | → | mark#(X) | |
mark#(s(X)) | → | s#(X) | s#(mark(X)) | → | s#(X) | |
mark#(terms(X)) | → | terms#(mark(X)) | sqr#(mark(X)) | → | sqr#(X) | |
active#(terms(N)) | → | s#(N) | s#(active(X)) | → | s#(X) | |
dbl#(active(X)) | → | dbl#(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
sqr#(mark(X)) → sqr#(X) | sqr#(active(X)) → sqr#(X) |
mark#(cons(X1, X2)) → active#(cons(mark(X1), X2)) | active#(first(0, X)) → mark#(nil) |
active#(add(s(X), Y)) → mark#(s(add(X, Y))) | mark#(sqr(X)) → active#(sqr(mark(X))) |
active#(dbl(s(X))) → mark#(s(s(dbl(X)))) | mark#(recip(X)) → mark#(X) |
active#(sqr(0)) → mark#(0) | mark#(nil) → active#(nil) |
active#(first(s(X), cons(Y, Z))) → mark#(cons(Y, first(X, Z))) | active#(sqr(s(X))) → mark#(s(add(sqr(X), dbl(X)))) |
mark#(add(X1, X2)) → mark#(X2) | mark#(add(X1, X2)) → active#(add(mark(X1), mark(X2))) |
mark#(add(X1, X2)) → mark#(X1) | mark#(recip(X)) → active#(recip(mark(X))) |
mark#(0) → active#(0) | mark#(first(X1, X2)) → mark#(X2) |
mark#(first(X1, X2)) → active#(first(mark(X1), mark(X2))) | mark#(cons(X1, X2)) → mark#(X1) |
mark#(dbl(X)) → active#(dbl(mark(X))) | active#(add(0, X)) → mark#(X) |
mark#(terms(X)) → active#(terms(mark(X))) | mark#(s(X)) → active#(s(X)) |
mark#(dbl(X)) → mark#(X) | mark#(terms(X)) → mark#(X) |
mark#(sqr(X)) → mark#(X) | active#(dbl(0)) → mark#(0) |
mark#(first(X1, X2)) → mark#(X1) | active#(terms(N)) → mark#(cons(recip(sqr(N)), terms(s(N)))) |
dbl#(mark(X)) → dbl#(X) | dbl#(active(X)) → dbl#(X) |
recip#(active(X)) → recip#(X) | recip#(mark(X)) → recip#(X) |
cons#(X1, active(X2)) → cons#(X1, X2) | cons#(mark(X1), X2) → cons#(X1, X2) |
cons#(X1, mark(X2)) → cons#(X1, X2) | cons#(active(X1), X2) → cons#(X1, X2) |
s#(mark(X)) → s#(X) | s#(active(X)) → s#(X) |
terms#(mark(X)) → terms#(X) | terms#(active(X)) → terms#(X) |
first#(active(X1), X2) → first#(X1, X2) | first#(mark(X1), X2) → first#(X1, X2) |
first#(X1, active(X2)) → first#(X1, X2) | first#(X1, mark(X2)) → first#(X1, X2) |
add#(active(X1), X2) → add#(X1, X2) | add#(X1, mark(X2)) → add#(X1, X2) |
add#(X1, active(X2)) → add#(X1, X2) | add#(mark(X1), X2) → add#(X1, X2) |
cons#(X1, active(X2)) | → | cons#(X1, X2) | cons#(mark(X1), X2) | → | cons#(X1, X2) | |
cons#(X1, mark(X2)) | → | cons#(X1, X2) | cons#(active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
cons#(mark(X1), X2) | → | cons#(X1, X2) | cons#(active(X1), X2) | → | cons#(X1, X2) |
cons#(X1, active(X2)) | → | cons#(X1, X2) | cons#(X1, mark(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, dbl, mark, recip, add, first, nil, cons
terms: all arguments are removed from terms
sqr: all arguments are removed from sqr
mark: collapses to 1
dbl: all arguments are removed from dbl
recip: all arguments are removed from recip
add: all arguments are removed from add
cons#: collapses to 2
0: all arguments are removed from 0
s: all arguments are removed from s
active: 1
first: collapses to 1
cons: 1 2
nil: all arguments are removed from nil
There are no usable rules.
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
cons#(X1, active(X2)) → cons#(X1, X2) |
cons#(X1, mark(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
terms: all arguments are removed from terms
sqr: all arguments are removed from sqr
mark: 1
dbl: collapses to 1
recip: all arguments are removed from recip
add: collapses to 2
cons#: collapses to 2
0: all arguments are removed from 0
s: all arguments are removed from s
active: collapses to 1
first: all arguments are removed from first
cons: 1 2
nil: all arguments are removed from nil
There are no usable rules.
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
cons#(X1, mark(X2)) → cons#(X1, X2) |
first#(active(X1), X2) | → | first#(X1, X2) | first#(mark(X1), X2) | → | first#(X1, X2) | |
first#(X1, active(X2)) | → | first#(X1, X2) | first#(X1, mark(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
first#(active(X1), X2) | → | first#(X1, X2) | first#(mark(X1), X2) | → | first#(X1, X2) |
first#(X1, mark(X2)) | → | first#(X1, X2) | first#(X1, active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, dbl, mark, recip, add, first, nil, cons
terms: all arguments are removed from terms
sqr: all arguments are removed from sqr
mark: 1
dbl: all arguments are removed from dbl
recip: all arguments are removed from recip
add: all arguments are removed from add
first#: collapses to 2
0: all arguments are removed from 0
s: all arguments are removed from s
active: collapses to 1
first: 1 2
cons: 1 2
nil: all arguments are removed from nil
There are no usable rules.
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
first#(X1, mark(X2)) → first#(X1, X2) |
first#(X1, active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
terms: all arguments are removed from terms
sqr: all arguments are removed from sqr
mark: all arguments are removed from mark
dbl: all arguments are removed from dbl
recip: all arguments are removed from recip
add: 1 2
first#: collapses to 2
0: all arguments are removed from 0
s: 1
active: 1
first: all arguments are removed from first
cons: all arguments are removed from cons
nil: all arguments are removed from nil
There are no usable rules.
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
first#(X1, active(X2)) → first#(X1, X2) |
sqr#(mark(X)) | → | sqr#(X) | sqr#(active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
sqr#(mark(X)) | → | sqr#(X) | sqr#(active(X)) | → | sqr#(X) |
dbl#(mark(X)) | → | dbl#(X) | dbl#(active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
dbl#(mark(X)) | → | dbl#(X) | dbl#(active(X)) | → | dbl#(X) |
terms#(mark(X)) | → | terms#(X) | terms#(active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
terms#(mark(X)) | → | terms#(X) | terms#(active(X)) | → | terms#(X) |
add#(active(X1), X2) | → | add#(X1, X2) | add#(X1, mark(X2)) | → | add#(X1, X2) | |
add#(X1, active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
add#(active(X1), X2) | → | add#(X1, X2) | add#(mark(X1), X2) | → | add#(X1, X2) |
add#(X1, mark(X2)) | → | add#(X1, X2) | add#(X1, active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, dbl, mark, recip, add, first, nil, cons
terms: collapses to 1
sqr: 1
mark: collapses to 1
dbl: 1
recip: collapses to 1
add: 1
0: all arguments are removed from 0
s: all arguments are removed from s
active: 1
add#: 1 2
first: all arguments are removed from first
cons: all arguments are removed from cons
nil: all arguments are removed from nil
There are no usable rules.
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
add#(X1, active(X2)) → add#(X1, X2) |
add#(X1, mark(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
terms: all arguments are removed from terms
sqr: collapses to 1
mark: 1
dbl: collapses to 1
recip: all arguments are removed from recip
add: collapses to 1
0: all arguments are removed from 0
s: collapses to 1
active: 1
add#: collapses to 2
first: all arguments are removed from first
cons: 1 2
nil: all arguments are removed from nil
There are no usable rules.
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
add#(X1, mark(X2)) → add#(X1, X2) |
s#(mark(X)) | → | s#(X) | s#(active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
s#(mark(X)) | → | s#(X) | s#(active(X)) | → | s#(X) |
mark#(cons(X1, X2)) | → | active#(cons(mark(X1), X2)) | active#(first(0, X)) | → | mark#(nil) | |
active#(add(s(X), Y)) | → | mark#(s(add(X, Y))) | mark#(sqr(X)) | → | active#(sqr(mark(X))) | |
active#(dbl(s(X))) | → | mark#(s(s(dbl(X)))) | mark#(recip(X)) | → | mark#(X) | |
active#(sqr(0)) | → | mark#(0) | mark#(nil) | → | active#(nil) | |
active#(first(s(X), cons(Y, Z))) | → | mark#(cons(Y, first(X, Z))) | active#(sqr(s(X))) | → | mark#(s(add(sqr(X), dbl(X)))) | |
mark#(add(X1, X2)) | → | mark#(X2) | mark#(add(X1, X2)) | → | active#(add(mark(X1), mark(X2))) | |
mark#(add(X1, X2)) | → | mark#(X1) | mark#(recip(X)) | → | active#(recip(mark(X))) | |
mark#(first(X1, X2)) | → | mark#(X2) | mark#(0) | → | active#(0) | |
mark#(cons(X1, X2)) | → | mark#(X1) | mark#(first(X1, X2)) | → | active#(first(mark(X1), mark(X2))) | |
mark#(dbl(X)) | → | active#(dbl(mark(X))) | active#(add(0, X)) | → | mark#(X) | |
mark#(terms(X)) | → | active#(terms(mark(X))) | mark#(dbl(X)) | → | mark#(X) | |
mark#(s(X)) | → | active#(s(X)) | mark#(terms(X)) | → | mark#(X) | |
mark#(sqr(X)) | → | mark#(X) | active#(dbl(0)) | → | mark#(0) | |
mark#(first(X1, X2)) | → | mark#(X1) | active#(terms(N)) | → | mark#(cons(recip(sqr(N)), terms(s(N)))) |
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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
terms: all arguments are removed from terms
sqr: all arguments are removed from sqr
mark: all arguments are removed from mark
dbl: all arguments are removed from dbl
recip: all arguments are removed from recip
add: all arguments are removed from add
mark#: all arguments are removed from mark#
0: all arguments are removed from 0
s: all arguments are removed from s
active: collapses to 1
active#: collapses to 1
first: all arguments are removed from first
cons: all arguments are removed from cons
nil: all arguments are removed from nil
mark(sqr(X)) → active(sqr(mark(X))) | cons(active(X1), X2) → cons(X1, X2) |
active(sqr(0)) → mark(0) | mark(recip(X)) → active(recip(mark(X))) |
mark(first(X1, X2)) → active(first(mark(X1), mark(X2))) | mark(add(X1, X2)) → active(add(mark(X1), mark(X2))) |
active(first(0, X)) → mark(nil) | mark(s(X)) → active(s(X)) |
add(X1, mark(X2)) → add(X1, X2) | active(first(s(X), cons(Y, Z))) → mark(cons(Y, first(X, Z))) |
first(X1, mark(X2)) → first(X1, X2) | cons(X1, mark(X2)) → cons(X1, X2) |
terms(active(X)) → terms(X) | first(active(X1), X2) → first(X1, X2) |
recip(mark(X)) → recip(X) | first(X1, active(X2)) → first(X1, X2) |
add(X1, active(X2)) → add(X1, X2) | active(dbl(0)) → mark(0) |
active(dbl(s(X))) → mark(s(s(dbl(X)))) | active(terms(N)) → mark(cons(recip(sqr(N)), terms(s(N)))) |
add(mark(X1), X2) → add(X1, X2) | mark(nil) → active(nil) |
dbl(mark(X)) → dbl(X) | mark(0) → active(0) |
s(active(X)) → s(X) | cons(X1, active(X2)) → cons(X1, X2) |
sqr(mark(X)) → sqr(X) | first(mark(X1), X2) → first(X1, X2) |
add(active(X1), X2) → add(X1, X2) | terms(mark(X)) → terms(X) |
active(add(s(X), Y)) → mark(s(add(X, Y))) | active(sqr(s(X))) → mark(s(add(sqr(X), dbl(X)))) |
cons(mark(X1), X2) → cons(X1, X2) | mark(cons(X1, X2)) → active(cons(mark(X1), X2)) |
mark(terms(X)) → active(terms(mark(X))) | active(add(0, X)) → mark(X) |
s(mark(X)) → s(X) | recip(active(X)) → recip(X) |
sqr(active(X)) → sqr(X) | mark(dbl(X)) → active(dbl(mark(X))) |
dbl(active(X)) → dbl(X) |
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
mark#(nil) → active#(nil) |
active#(first(0, X)) | → | mark#(nil) | mark#(cons(X1, X2)) | → | active#(cons(mark(X1), X2)) | |
active#(add(s(X), Y)) | → | mark#(s(add(X, Y))) | mark#(sqr(X)) | → | active#(sqr(mark(X))) | |
active#(dbl(s(X))) | → | mark#(s(s(dbl(X)))) | active#(sqr(0)) | → | mark#(0) | |
mark#(recip(X)) | → | mark#(X) | active#(first(s(X), cons(Y, Z))) | → | mark#(cons(Y, first(X, Z))) | |
active#(sqr(s(X))) | → | mark#(s(add(sqr(X), dbl(X)))) | mark#(add(X1, X2)) | → | mark#(X2) | |
mark#(add(X1, X2)) | → | active#(add(mark(X1), mark(X2))) | mark#(add(X1, X2)) | → | mark#(X1) | |
mark#(recip(X)) | → | active#(recip(mark(X))) | mark#(first(X1, X2)) | → | mark#(X2) | |
mark#(0) | → | active#(0) | mark#(cons(X1, X2)) | → | mark#(X1) | |
mark#(first(X1, X2)) | → | active#(first(mark(X1), mark(X2))) | mark#(dbl(X)) | → | active#(dbl(mark(X))) | |
active#(add(0, X)) | → | mark#(X) | mark#(terms(X)) | → | active#(terms(mark(X))) | |
mark#(dbl(X)) | → | mark#(X) | mark#(s(X)) | → | active#(s(X)) | |
mark#(terms(X)) | → | mark#(X) | mark#(sqr(X)) | → | mark#(X) | |
active#(dbl(0)) | → | mark#(0) | mark#(first(X1, X2)) | → | mark#(X1) | |
active#(terms(N)) | → | mark#(cons(recip(sqr(N)), terms(s(N)))) |
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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, dbl, mark, recip, add, first, nil, cons
terms: all arguments are removed from terms
sqr: all arguments are removed from sqr
mark: all arguments are removed from mark
dbl: all arguments are removed from dbl
recip: all arguments are removed from recip
add: all arguments are removed from add
mark#: all arguments are removed from mark#
0: all arguments are removed from 0
s: all arguments are removed from s
active: collapses to 1
active#: collapses to 1
first: all arguments are removed from first
cons: all arguments are removed from cons
nil: all arguments are removed from nil
mark(sqr(X)) → active(sqr(mark(X))) | cons(active(X1), X2) → cons(X1, X2) |
active(sqr(0)) → mark(0) | mark(recip(X)) → active(recip(mark(X))) |
mark(first(X1, X2)) → active(first(mark(X1), mark(X2))) | mark(add(X1, X2)) → active(add(mark(X1), mark(X2))) |
active(first(0, X)) → mark(nil) | mark(s(X)) → active(s(X)) |
add(X1, mark(X2)) → add(X1, X2) | active(first(s(X), cons(Y, Z))) → mark(cons(Y, first(X, Z))) |
first(X1, mark(X2)) → first(X1, X2) | cons(X1, mark(X2)) → cons(X1, X2) |
terms(active(X)) → terms(X) | first(active(X1), X2) → first(X1, X2) |
recip(mark(X)) → recip(X) | first(X1, active(X2)) → first(X1, X2) |
add(X1, active(X2)) → add(X1, X2) | active(dbl(0)) → mark(0) |
active(dbl(s(X))) → mark(s(s(dbl(X)))) | active(terms(N)) → mark(cons(recip(sqr(N)), terms(s(N)))) |
add(mark(X1), X2) → add(X1, X2) | mark(nil) → active(nil) |
dbl(mark(X)) → dbl(X) | mark(0) → active(0) |
s(active(X)) → s(X) | cons(X1, active(X2)) → cons(X1, X2) |
sqr(mark(X)) → sqr(X) | first(mark(X1), X2) → first(X1, X2) |
add(active(X1), X2) → add(X1, X2) | terms(mark(X)) → terms(X) |
active(add(s(X), Y)) → mark(s(add(X, Y))) | active(sqr(s(X))) → mark(s(add(sqr(X), dbl(X)))) |
cons(mark(X1), X2) → cons(X1, X2) | mark(cons(X1, X2)) → active(cons(mark(X1), X2)) |
mark(terms(X)) → active(terms(mark(X))) | active(add(0, X)) → mark(X) |
s(mark(X)) → s(X) | recip(active(X)) → recip(X) |
sqr(active(X)) → sqr(X) | mark(dbl(X)) → active(dbl(mark(X))) |
dbl(active(X)) → dbl(X) |
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
mark#(0) → active#(0) |
mark#(cons(X1, X2)) | → | active#(cons(mark(X1), X2)) | active#(first(0, X)) | → | mark#(nil) | |
active#(add(s(X), Y)) | → | mark#(s(add(X, Y))) | mark#(sqr(X)) | → | active#(sqr(mark(X))) | |
active#(dbl(s(X))) | → | mark#(s(s(dbl(X)))) | mark#(recip(X)) | → | mark#(X) | |
active#(sqr(0)) | → | mark#(0) | active#(first(s(X), cons(Y, Z))) | → | mark#(cons(Y, first(X, Z))) | |
active#(sqr(s(X))) | → | mark#(s(add(sqr(X), dbl(X)))) | mark#(add(X1, X2)) | → | mark#(X2) | |
mark#(add(X1, X2)) | → | active#(add(mark(X1), mark(X2))) | mark#(add(X1, X2)) | → | mark#(X1) | |
mark#(recip(X)) | → | active#(recip(mark(X))) | mark#(first(X1, X2)) | → | mark#(X2) | |
mark#(cons(X1, X2)) | → | mark#(X1) | mark#(first(X1, X2)) | → | active#(first(mark(X1), mark(X2))) | |
mark#(dbl(X)) | → | active#(dbl(mark(X))) | active#(add(0, X)) | → | mark#(X) | |
mark#(terms(X)) | → | active#(terms(mark(X))) | mark#(dbl(X)) | → | mark#(X) | |
mark#(s(X)) | → | active#(s(X)) | mark#(terms(X)) | → | mark#(X) | |
mark#(sqr(X)) | → | mark#(X) | active#(dbl(0)) | → | mark#(0) | |
mark#(first(X1, X2)) | → | mark#(X1) | active#(terms(N)) | → | mark#(cons(recip(sqr(N)), terms(s(N)))) |
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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
terms: all arguments are removed from terms
sqr: all arguments are removed from sqr
mark: all arguments are removed from mark
dbl: all arguments are removed from dbl
recip: all arguments are removed from recip
add: all arguments are removed from add
mark#: all arguments are removed from mark#
0: all arguments are removed from 0
s: all arguments are removed from s
active: collapses to 1
active#: collapses to 1
first: all arguments are removed from first
cons: all arguments are removed from cons
nil: all arguments are removed from nil
mark(sqr(X)) → active(sqr(mark(X))) | cons(active(X1), X2) → cons(X1, X2) |
active(sqr(0)) → mark(0) | mark(recip(X)) → active(recip(mark(X))) |
mark(first(X1, X2)) → active(first(mark(X1), mark(X2))) | mark(add(X1, X2)) → active(add(mark(X1), mark(X2))) |
active(first(0, X)) → mark(nil) | mark(s(X)) → active(s(X)) |
add(X1, mark(X2)) → add(X1, X2) | active(first(s(X), cons(Y, Z))) → mark(cons(Y, first(X, Z))) |
first(X1, mark(X2)) → first(X1, X2) | cons(X1, mark(X2)) → cons(X1, X2) |
terms(active(X)) → terms(X) | first(active(X1), X2) → first(X1, X2) |
recip(mark(X)) → recip(X) | first(X1, active(X2)) → first(X1, X2) |
add(X1, active(X2)) → add(X1, X2) | active(dbl(0)) → mark(0) |
active(dbl(s(X))) → mark(s(s(dbl(X)))) | active(terms(N)) → mark(cons(recip(sqr(N)), terms(s(N)))) |
add(mark(X1), X2) → add(X1, X2) | mark(nil) → active(nil) |
dbl(mark(X)) → dbl(X) | mark(0) → active(0) |
s(active(X)) → s(X) | cons(X1, active(X2)) → cons(X1, X2) |
sqr(mark(X)) → sqr(X) | first(mark(X1), X2) → first(X1, X2) |
add(active(X1), X2) → add(X1, X2) | terms(mark(X)) → terms(X) |
active(add(s(X), Y)) → mark(s(add(X, Y))) | active(sqr(s(X))) → mark(s(add(sqr(X), dbl(X)))) |
cons(mark(X1), X2) → cons(X1, X2) | mark(cons(X1, X2)) → active(cons(mark(X1), X2)) |
mark(terms(X)) → active(terms(mark(X))) | active(add(0, X)) → mark(X) |
s(mark(X)) → s(X) | recip(active(X)) → recip(X) |
sqr(active(X)) → sqr(X) | mark(dbl(X)) → active(dbl(mark(X))) |
dbl(active(X)) → dbl(X) |
The dependency pairs and usable rules are stronlgy conservative!
The following dependency pairs (at least) can be eliminated according to the given precedence.
mark#(recip(X)) → active#(recip(mark(X))) |
recip#(active(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))) | mark(terms(X)) | → | active(terms(mark(X))) | |
mark(cons(X1, X2)) | → | active(cons(mark(X1), X2)) | mark(recip(X)) | → | active(recip(mark(X))) | |
mark(sqr(X)) | → | active(sqr(mark(X))) | mark(s(X)) | → | active(s(X)) | |
mark(0) | → | active(0) | mark(add(X1, X2)) | → | active(add(mark(X1), mark(X2))) | |
mark(dbl(X)) | → | active(dbl(mark(X))) | mark(first(X1, X2)) | → | active(first(mark(X1), mark(X2))) | |
mark(nil) | → | active(nil) | terms(mark(X)) | → | terms(X) | |
terms(active(X)) | → | terms(X) | cons(mark(X1), X2) | → | cons(X1, X2) | |
cons(X1, mark(X2)) | → | cons(X1, X2) | cons(active(X1), X2) | → | cons(X1, X2) | |
cons(X1, active(X2)) | → | cons(X1, X2) | recip(mark(X)) | → | recip(X) | |
recip(active(X)) | → | recip(X) | sqr(mark(X)) | → | sqr(X) | |
sqr(active(X)) | → | sqr(X) | s(mark(X)) | → | s(X) | |
s(active(X)) | → | s(X) | add(mark(X1), X2) | → | add(X1, X2) | |
add(X1, mark(X2)) | → | add(X1, X2) | add(active(X1), X2) | → | add(X1, X2) | |
add(X1, active(X2)) | → | add(X1, X2) | dbl(mark(X)) | → | dbl(X) | |
dbl(active(X)) | → | dbl(X) | first(mark(X1), X2) | → | first(X1, X2) | |
first(X1, mark(X2)) | → | first(X1, X2) | first(active(X1), X2) | → | first(X1, X2) | |
first(X1, active(X2)) | → | first(X1, X2) |
Termination of terms over the following signature is verified: 0, s, terms, sqr, active, mark, dbl, recip, add, first, cons, nil
The following projection was used:
Thus, the following dependency pairs are removed:
recip#(active(X)) | → | recip#(X) | recip#(mark(X)) | → | recip#(X) |