R
↳Dependency Pair Analysis
2ND(cons(X, XS)) -> HEAD(activate(XS))
2ND(cons(X, XS)) -> ACTIVATE(XS)
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
SEL(s(N), cons(X, XS)) -> SEL(N, activate(XS))
SEL(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(nfrom(X)) -> FROM(X)
ACTIVATE(ntake(X1, X2)) -> TAKE(X1, X2)
R
↳DPs
→DP Problem 1
↳Polynomial Ordering
→DP Problem 2
↳Remaining
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
ACTIVATE(ntake(X1, X2)) -> TAKE(X1, X2)
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
head(cons(X, XS)) -> X
2nd(cons(X, XS)) -> head(activate(XS))
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
activate(nfrom(X)) -> from(X)
activate(ntake(X1, X2)) -> take(X1, X2)
activate(X) -> X
TAKE(s(N), cons(X, XS)) -> ACTIVATE(XS)
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
head(cons(X, XS)) -> X
2nd(cons(X, XS)) -> head(activate(XS))
activate(nfrom(X)) -> from(X)
activate(ntake(X1, X2)) -> take(X1, X2)
activate(X) -> X
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
POL(from(x1)) = x1 POL(activate(x1)) = x1 POL(n__take(x1, x2)) = 1 + x2 POL(take(x1, x2)) = 1 + x2 POL(TAKE(x1, x2)) = 1 + x2 POL(sel(x1, x2)) = 1 + x2 POL(ACTIVATE(x1)) = x1 POL(n__from(x1)) = x1 POL(0) = 0 POL(2nd(x1)) = x1 POL(cons(x1, x2)) = x1 + x2 POL(nil) = 0 POL(s(x1)) = 0 POL(head(x1)) = x1
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 3
↳Dependency Graph
→DP Problem 2
↳Remaining
ACTIVATE(ntake(X1, X2)) -> TAKE(X1, X2)
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
head(cons(X, XS)) -> X
2nd(cons(X, XS)) -> head(activate(XS))
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
activate(nfrom(X)) -> from(X)
activate(ntake(X1, X2)) -> take(X1, X2)
activate(X) -> X
R
↳DPs
→DP Problem 1
↳Polo
→DP Problem 2
↳Remaining Obligation(s)
SEL(s(N), cons(X, XS)) -> SEL(N, activate(XS))
from(X) -> cons(X, nfrom(s(X)))
from(X) -> nfrom(X)
head(cons(X, XS)) -> X
2nd(cons(X, XS)) -> head(activate(XS))
take(0, XS) -> nil
take(s(N), cons(X, XS)) -> cons(X, ntake(N, activate(XS)))
take(X1, X2) -> ntake(X1, X2)
sel(0, cons(X, XS)) -> X
sel(s(N), cons(X, XS)) -> sel(N, activate(XS))
activate(nfrom(X)) -> from(X)
activate(ntake(X1, X2)) -> take(X1, X2)
activate(X) -> X