R
↳Dependency Pair Analysis
FILTER(cons(X, Y), 0, M) -> ACTIVATE(Y)
FILTER(cons(X, Y), s(N), M) -> ACTIVATE(Y)
SIEVE(cons(0, Y)) -> ACTIVATE(Y)
SIEVE(cons(s(N), Y)) -> FILTER(activate(Y), N, N)
SIEVE(cons(s(N), Y)) -> ACTIVATE(Y)
ZPRIMES -> SIEVE(nats(s(s(0))))
ZPRIMES -> NATS(s(s(0)))
ACTIVATE(nfilter(X1, X2, X3)) -> FILTER(X1, X2, X3)
ACTIVATE(nsieve(X)) -> SIEVE(X)
ACTIVATE(nnats(X)) -> NATS(X)
R
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
SIEVE(cons(s(N), Y)) -> ACTIVATE(Y)
SIEVE(cons(s(N), Y)) -> FILTER(activate(Y), N, N)
SIEVE(cons(0, Y)) -> ACTIVATE(Y)
ACTIVATE(nsieve(X)) -> SIEVE(X)
FILTER(cons(X, Y), s(N), M) -> ACTIVATE(Y)
ACTIVATE(nfilter(X1, X2, X3)) -> FILTER(X1, X2, X3)
FILTER(cons(X, Y), 0, M) -> ACTIVATE(Y)
filter(cons(X, Y), 0, M) -> cons(0, nfilter(activate(Y), M, M))
filter(cons(X, Y), s(N), M) -> cons(X, nfilter(activate(Y), N, M))
filter(X1, X2, X3) -> nfilter(X1, X2, X3)
sieve(cons(0, Y)) -> cons(0, nsieve(activate(Y)))
sieve(cons(s(N), Y)) -> cons(s(N), nsieve(filter(activate(Y), N, N)))
sieve(X) -> nsieve(X)
nats(N) -> cons(N, nnats(s(N)))
nats(X) -> nnats(X)
zprimes -> sieve(nats(s(s(0))))
activate(nfilter(X1, X2, X3)) -> filter(X1, X2, X3)
activate(nsieve(X)) -> sieve(X)
activate(nnats(X)) -> nats(X)
activate(X) -> X
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Negative Polynomial Order
SIEVE(cons(s(N), Y)) -> ACTIVATE(Y)
SIEVE(cons(s(N), Y)) -> FILTER(activate(Y), N, N)
SIEVE(cons(0, Y)) -> ACTIVATE(Y)
ACTIVATE(nsieve(X)) -> SIEVE(X)
FILTER(cons(X, Y), s(N), M) -> ACTIVATE(Y)
ACTIVATE(nfilter(X1, X2, X3)) -> FILTER(X1, X2, X3)
FILTER(cons(X, Y), 0, M) -> ACTIVATE(Y)
nats(N) -> cons(N, nnats(s(N)))
nats(X) -> nnats(X)
activate(nsieve(X)) -> sieve(X)
activate(nnats(X)) -> nats(X)
activate(X) -> X
activate(nfilter(X1, X2, X3)) -> filter(X1, X2, X3)
sieve(cons(s(N), Y)) -> cons(s(N), nsieve(filter(activate(Y), N, N)))
sieve(X) -> nsieve(X)
sieve(cons(0, Y)) -> cons(0, nsieve(activate(Y)))
filter(cons(X, Y), 0, M) -> cons(0, nfilter(activate(Y), M, M))
filter(cons(X, Y), s(N), M) -> cons(X, nfilter(activate(Y), N, M))
filter(X1, X2, X3) -> nfilter(X1, X2, X3)
innermost
SIEVE(cons(s(N), Y)) -> ACTIVATE(Y)
SIEVE(cons(s(N), Y)) -> FILTER(activate(Y), N, N)
SIEVE(cons(0, Y)) -> ACTIVATE(Y)
nats(N) -> cons(N, nnats(s(N)))
nats(X) -> nnats(X)
activate(nsieve(X)) -> sieve(X)
activate(nnats(X)) -> nats(X)
activate(X) -> X
activate(nfilter(X1, X2, X3)) -> filter(X1, X2, X3)
sieve(cons(s(N), Y)) -> cons(s(N), nsieve(filter(activate(Y), N, N)))
sieve(X) -> nsieve(X)
sieve(cons(0, Y)) -> cons(0, nsieve(activate(Y)))
filter(cons(X, Y), 0, M) -> cons(0, nfilter(activate(Y), M, M))
filter(cons(X, Y), s(N), M) -> cons(X, nfilter(activate(Y), N, M))
filter(X1, X2, X3) -> nfilter(X1, X2, X3)
POL( SIEVE(x1) ) = x1 + 1
POL( cons(x1, x2) ) = x2
POL( ACTIVATE(x1) ) = x1
POL( nsieve(x1) ) = x1 + 1
POL( FILTER(x1, ..., x3) ) = x1
POL( nfilter(x1, ..., x3) ) = x1
POL( activate(x1) ) = x1
POL( nats(x1) ) = 0
POL( nnats(x1) ) = 0
POL( sieve(x1) ) = x1 + 1
POL( filter(x1, ..., x3) ) = x1
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Neg POLO
...
→DP Problem 3
↳Dependency Graph
ACTIVATE(nsieve(X)) -> SIEVE(X)
FILTER(cons(X, Y), s(N), M) -> ACTIVATE(Y)
ACTIVATE(nfilter(X1, X2, X3)) -> FILTER(X1, X2, X3)
FILTER(cons(X, Y), 0, M) -> ACTIVATE(Y)
nats(N) -> cons(N, nnats(s(N)))
nats(X) -> nnats(X)
activate(nsieve(X)) -> sieve(X)
activate(nnats(X)) -> nats(X)
activate(X) -> X
activate(nfilter(X1, X2, X3)) -> filter(X1, X2, X3)
sieve(cons(s(N), Y)) -> cons(s(N), nsieve(filter(activate(Y), N, N)))
sieve(X) -> nsieve(X)
sieve(cons(0, Y)) -> cons(0, nsieve(activate(Y)))
filter(cons(X, Y), 0, M) -> cons(0, nfilter(activate(Y), M, M))
filter(cons(X, Y), s(N), M) -> cons(X, nfilter(activate(Y), N, M))
filter(X1, X2, X3) -> nfilter(X1, X2, X3)
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Neg POLO
...
→DP Problem 4
↳Usable Rules (Innermost)
FILTER(cons(X, Y), 0, M) -> ACTIVATE(Y)
ACTIVATE(nfilter(X1, X2, X3)) -> FILTER(X1, X2, X3)
FILTER(cons(X, Y), s(N), M) -> ACTIVATE(Y)
nats(N) -> cons(N, nnats(s(N)))
nats(X) -> nnats(X)
activate(nsieve(X)) -> sieve(X)
activate(nnats(X)) -> nats(X)
activate(X) -> X
activate(nfilter(X1, X2, X3)) -> filter(X1, X2, X3)
sieve(cons(s(N), Y)) -> cons(s(N), nsieve(filter(activate(Y), N, N)))
sieve(X) -> nsieve(X)
sieve(cons(0, Y)) -> cons(0, nsieve(activate(Y)))
filter(cons(X, Y), 0, M) -> cons(0, nfilter(activate(Y), M, M))
filter(cons(X, Y), s(N), M) -> cons(X, nfilter(activate(Y), N, M))
filter(X1, X2, X3) -> nfilter(X1, X2, X3)
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Neg POLO
...
→DP Problem 5
↳Size-Change Principle
FILTER(cons(X, Y), 0, M) -> ACTIVATE(Y)
ACTIVATE(nfilter(X1, X2, X3)) -> FILTER(X1, X2, X3)
FILTER(cons(X, Y), s(N), M) -> ACTIVATE(Y)
none
innermost
|
|
|
|
trivial
nfilter(x1, x2, x3) -> nfilter(x1, x2, x3)
cons(x1, x2) -> cons(x1, x2)
s(x1) -> s(x1)